The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Have a shell script check for a file to exist before processing another file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Have a shell script check for a file to exist before processing another file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
11-14-2006
aigles
Registered User
Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,428
The following code is equivalent :
Code:
if [[ -a /gers/genret/tmp/poll_$fileExtension.txt ]] then continue fi
If the file pooll_ exists, then resume the next iteration of the for loop (proceed next file).
Jean-Pierre.
aigles
View Public Profile
Find all posts by aigles
Find aigles's past nominations received
Find aigles's present nominations given