Summary: Grep output's to my display from within a script.

From: Simon Crowther (scrowthe@msxi-euro.com)
Date: Thu Jun 05 2003 - 08:19:35 EDT


Hi,

Thanks for the fast responses,

Firstly I sould have mentioned this is a Minimized OS (as per Sun
Blueprints)
So I do not have the SUNWxcu4 package installed, which is required for
/usr/xpg4/bin/grep.

So unfortunately I am unable to take advantage of the
/usr/xpg4/bin/grep -q (quiet) option.

The solution I needed was:

...
if
     /usr/bin/grep "^X-Spam-Level: \*\{$SPAMLIMIT,\}" <out.$$
>/dev/null 2>&1
then
....

Thanks to all that answered

Lucien HERCAUD
ttg@charter.net
Lieven Marchand
David Glass
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:32 EDT