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

From: Simon Crowther <scrowthe_at_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
Received on Thu Jun 5 08:23:54 2003

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:43:11 EST