From: Goutham.Nithyanandam@in.standardchartered.com
Date: Mon Mar 27 2006 - 10:28:01 EST
Hi,
I wrote a shell script to check for a file in a directory. In case the
file is found it has to
process the if statement. if the file is not found else has to be
processed.
I wrote as below. Kindly help whats the mistake and how should i proceed.
1MONTHLY=`ls *PARTIAL_M*`
2 if [ -f $MONTHLY ]
3 then
4
5 echo "inside partial place"
6 else
7 echo "Error Occurred while processing" > filename
8 fi
Thanks in Advance
Regards,
N. Gowthaman
This email is confidential. If you are not the addressee tell the sender immediately and destroy this email without using, sending or storing it. Emails are not secure and may suffer errors, viruses, delay, interception and amendment. Standard Chartered PLC and subsidiaries ("SCGroup") do not accept liability for damage caused by this email and may monitor email traffic.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:39:25 EDT