I am trying to come up with a script that will search for selected files and then email them to me.
For example, say I have a directory that has the following files:
AA_doug.txt
AA_andy.txt
BB_john.txt
APPLE_mike.txt
GLOBE_ed.txt
GLOBE_tony.txt
TOTAL_carl.txt
what is the best way to find the following files and email them to myself? I think I have found a way to do it with the find command but I am not sure as I am still learning as I go.
email would send:
AA_doug.txt
AA_andy.txt
GLOBE_ed.txt
GLOBE_tony.txt
TOTAL_carl.txt
Any help or suggestions to get me started would be appreciated.