Scripting question

Hi
I am trying to write a small script which takes one by one file name from a txt file and do a 'll' and need to check if equal to the given month, otherwise it should return back the file name.
Note: the file name contains parameter.
My code is given below: It is not working .. giving error as no ll command found.

while read line
do

export File_Name=`eval echo $(echo $line)`

Month="(ll $File_Name | cut -d ' ' -f6)"

 if [ "$Month" = "Jun" ]
 then 
	echo "Correct"
 else
 	echo "$File_Name"
 fi

done<filecheck.dat

Try using...

Month=$(ll $File_Name | cut -d ' ' -f6)

Why do you use the eval echo construction, is it to condense spacing? Why not:

while read File_Name
do
  ...
done<filecheck.dat

No It is not working same error.

month.ksh: line 6: ll: command not found

use ls -l instead of ll

Again i am getting same error

month.ksh: line 6: ls-l: command not found

---------- Post updated at 03:35 PM ---------- Previous update was at 03:32 PM ----------

Thanks got it

You miss a space
wrong

ls-l

correct

ls -l