In your eval, you have given file name as FILE. But in your earlier post, you have given it as FILE1. Please check the file name before executing the command with backticks.
here $FILE is variable which contains the path of the file which
need to be grepped.
i am performing this operation in a while loop,which reads from a file (say xx) and for each path given in file xx, it assign path to variable
$FILE and then perform the grep operation
if i just write the expression as given above in my script it gives error saying "grep: canot open file ......"
And if i perform in this way
eval grep -n "end" $FILE | cut -f1 -d":"
it gives proper result at the scree
i.e 200 (line number expected)
But now i want this line number to be store it in a variable instead displaying at the screen