in reply to check for latest file, remove and touch file?
I'll want to check if the previous step, S00004, exists (I think by using if -e)
Many people use -f in preference to -e as the former tests not only that the file exists but that it is a plain file.
See the documentation for Perl file test operators, which may help you solve some of your other issues too.
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check for latest file, remove and touch file?
by fasoli (Beadle) on Jan 05, 2016 at 15:42 UTC |