Hi ,
I have a peculiar problem.
i have an if block like this
if [ -f $ff ];
then
echo " todays date is " ${date} >> log_file
echo " file count is " $ count >> log_file
mv filename1 filename 2
else
echo "no files available ">> log_file
fi
the echo statement "no files available " is not written to the log file if no files are retrieved by the if loop.
Can someone help resolve this and really fast?
Thanks in advance