|
sending you the code and error message, still, error persists.. pls help
Actually i am trying the following code when in run this program in linux environment
echo " enter the mobile number "
read mob
echo "Enter the choice of log you want to see "
echo "1. F.log"
echo "2. A.log"
echo "3. I.log"
echo "4. R.log"
echo "5. M.log"
echo "6. A.log"
read choice
if [ $choice == 1 ] then
echo "This will give the contents present in f.log"
grep $mob /data/logs/f.log | cut -f1,2,4,5,11 -d" "
endif
the error message i am getting as
"line 17: syntax error: unexpected end of file"
|