![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Polling continously for presence of a file | manoj39 | Shell Programming and Scripting | 4 | 06-23-2009 01:59 PM |
| check the input | Shilpi | UNIX for Dummies Questions & Answers | 1 | 03-04-2008 08:26 AM |
| How do I test for the presence of a file in Bourne Shell | vins | UNIX for Dummies Questions & Answers | 3 | 03-17-2006 03:42 PM |
| Check on Input | dhananjaysk | Shell Programming and Scripting | 3 | 03-13-2006 01:55 PM |
| What can i do to check that the input is all alphabet.. ? | XXXXXXXXXX | Shell Programming and Scripting | 4 | 02-19-2002 07:09 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
check presence of input file
My script is taking a file "input.in" as input for running the script. My worry is that i need to execute the script only if the file is present, if it's not don't perform the next commands.
Just to have a check at the beginning of the script : If "input.in" exists, then go on. If it's does not exist exit. |
|
||||
|
Thank you, it's OK !
---------- Post updated 02-10-09 at 12:19 AM ---------- Previous update was 01-10-09 at 07:29 AM ---------- Hello again, Now i need to test if the input file "input.in" exists and if it's NOT empty, then execute next commands. Else exit Thanks in advance, |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|