--=-1JKCCLFfA7J17ijwtvQ0
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
Hello all. I was wondering if anyone knew how to do an if statement in
bash to see if results were returned? I want to write a bash script to
run hourly that will grep my mailbox for a certain text if the results
are different than the contents of another, previous output, then runn
another command. Somethinng like:
cat file|grep Text>/tmp/NewText.grep
diff /tmp/NewText.grep /tmp/Text.grep
if( diff returned anything ) ./runme
mv /tmp/NewText.grep /tmp/Text.grep
I just don't know what if switches are available (to use) in bash.
Thank you.
--=20
Bryce C <
Plug@BryceCo.Net>
CoBryce Communications
--=-1JKCCLFfA7J17ijwtvQ0
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see
http://www.gnupg.org
iD8DBQA+HiZK/wbq/C6yyPcRAlPdAKCQn0iT1tPonCEbFmcLlxUi6n63LQCeImCz
EL+x3yWbJ/vs/Qol24nBbg8=
=fmFC
-----END PGP SIGNATURE-----
--=-1JKCCLFfA7J17ijwtvQ0--