Hi. I'm new to this,
I need to create a script that searches for 5 different types of files, sends results to a text file and if any of the files are found, to send an email to our unit.
The files all fall under a certain directory, but could be anywhere in a sub-directory past that point.
Right now I just have a find command listed separately looking for each file, as each find command is using the "*" somewhere within it
I don't know how to search all of these, if any are found to send an email. I understand how to get an email from one find, but not 5.
Four of the files being searched are using the name, only one is searching for the extension. I don't know if that makes a difference in how this is to be written, but as I said, I'm new to this, and its taken me 3 days to get this far.
Once this script is written, we will be putting it in our cron.
Any and all assistance with this would be greatly appreciated! I'm on an AIX box, but I'm able to script in bash.