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