|
check for existence of file
How can I determine if a file exists in a directory?
I'm trying to re-write an old 6.2 script that does not work on RH8.0. A file get ftp'd from the mainframe to this server. A cron job runs @the 20th of every hour to see if the file exists, If it does, then it manipulates the file and prepares for processing.
Code:
if test -e /home/me/myfile
then
mv /home/me/myfile /home/you/send/
|