|
bash if statement question
i have written a script to run in cron to perform functions on files in a particular directory. Once complete the files are moved elsewhere.
My problem is that files will be placed in this directory periodically. I need my script to run nightly and start with an if statement to check to see if the directory is empty and if it is to exit, if not to continue on...
How can i do this?
thanks for any help...
|