![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to check the existence of a file using korn shell? | karthikprasathk | AIX | 3 | 06-19-2008 02:51 AM |
| how to check the existence of a file during ftp using korn shell? | karthikprasathk | AIX | 1 | 06-19-2008 12:20 AM |
| Csh to check for existence of file | Raynon | Shell Programming and Scripting | 9 | 12-05-2007 05:20 PM |
| How to check the file existence using shell scripting in Solaris-10 | krevathi1912 | SUN Solaris | 2 | 11-26-2007 01:07 AM |
| Variable check for existence ? | samit_9999 | UNIX for Dummies Questions & Answers | 2 | 12-05-2006 01:15 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
check for file existence
Hello
I am having a requirement like if there is no file in the directory then i need a message to pop on after the execution of the script. My script basically does for File in `ls -t $DIRECTORY | tail -1`; if there is no file the DIRECTORY then the script is simply exiting with out giving any message but i want a message to pop on the screen with non-zero exit code. Thanks |
| Forum Sponsor | ||
|
|