Copying files and emailing them out

Hello everybody,

I'm trying to create a script that will cd into a directory and then copy the file with yesterday's date on it and then cd into another directory doing the same thing. Afterwards, i'm trying to zip up the two files, and email them out to people. Can anyone help?

thanks a bunch!

use the cd command to change the current working directory

check the find command and its mtime option to identify files
that were modified yesterday

use the cp command to copy files

check if gzip is available to zip the files

use sendmail to send files in an e-mail