Date: Thu, 10 Jan 1980 18:46:06 +0000 From: "Jesse" <bextreme@m4.sprynet.com> To: questions@freebsd.org Subject: Help with Scripts Message-ID: <199609040032.RAA08169@m4.sprynet.com>
next in thread | raw e-mail | index | archive | help
Hello! If anyone knows of any good places to look for information on
sh or csh scripts in FreeBSD I would greatly appreciate it.
What I am trying to do is make a small script that will scan all the
mail files in /var/mail for the keywords listed in a file, then if it
finds any of those keywords, to move the mail file that it was in to
a seperate directory (like /tmp/review), and copy a stock letter in
it's place. It would need to run indefinatly in a constant loop. So
far I have gotten far enough to search the mail files for the
keywords using grep, however I don't know how to use IF correctly to
see if grep actually found anything. If have checked all the manpages
for info on csh and sh, but they where uninformative to say the
least.
P.S. This is for my high school.
Thank you, Jesse Brown
(bextreme@sprynet.com)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609040032.RAA08169>
