Have a look at the grep command, it allows you to look through text files and search for various things.
Also -- there's an option for the mail command that just checks to see it there's any mail. Mike
________________________________________________________________________________
"Experience is the comb that Nature gives us, after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.
grep "(name)@(Address)" post > /dev/null 2>&1
if [ $? != 0 ]
then
"You have mail"
else
echo "no mail found at ${DATE}"
fi
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.