if [ $count2 -eq 0 ]
then
echo"Loop1"
command="egrep ',$var1,"
if [ "$var2" = "OR" ]
then
echo "the command is OR"
command=$command"|,$var3,"
echo "$command"
elif [ "$var2 = "AND" ]
then
command=$command"| egrep ',$var3,"
else
echo "the command is NOT"
command=$command"| egrep -v ',$var3,"
echo "$command"
fi
else
echo "Loop2"
fi
I m getting the error 'end of file' unexpected and not able to proceed further.. Plz help me with this. Teh script and the syntax looks fine to me... But dunno where the mistake is