On Sun, 6 Feb 2005 20:27:37 +0000, Martin Scharrer wrote:

> In this case it easier to compine the two commands with the AND
> statement  (&&):
> 
> if lynx -dump page1 | grep -q -e "search string" && lynx -dump page2 |
> grep -q  -e "search string"
> then
> command
> fi

You could also replace the if...then with another &&

lynx -dump page1 | grep -q "search string" && lynx -dump page2 | grep -q 
"search string" && command


-- 
Neil Bothwick

If a parsley farmer is sued, can they garnish his wages?

Attachment: pgppyR1WyiIZ7.pgp
Description: PGP signature

Reply via email to