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!
In reply to Re: check for latest file, remove and touch file?
by 1nickt
in thread check for latest file, remove and touch file?
by fasoli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |