Need help adding an IF / ELSE statement to my Bash Script
i have a bash script that cron runs every hour to strip certain text from a file, and send it to me via email every hour, then deletes the file. it works fine, but somtimes another file hasnt been written yet, so i recive an email with a null message. i want to add an IF/Else statement to this script so if there is no file present, it wont send the message... the Advanced Bash Shell Script how-to hasnt been much help.... i would appreciate any feedback....
if [ -f /path/to/file ]; then
#file exists - so do stuff
|All times are GMT -5. The time now is 04:23 PM.|