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 -->
#
3
(
permalink
)
11-13-2006
heprox
Registered User
Join Date: Jul 2005
Posts: 32
You lost me....
Forgive my ignorance, so how would bracketing the "-a" work?
Code:
[[ -a /gers/genret/tmp/poll_$fileExtension.txt ]] && continue
...it would check for the file "poll_" and if it found it stop there and move onto the next file? I'm confused how this works?
heprox
View Public Profile
Find all posts by heprox
Find heprox's past nominations received
Find heprox's present nominations given