Thanks to Sean Harding for the quick response. The answer was egrep
script.sh | egrep "Synchronized|Restored"
Thanks,
John
-----Original Message-----
From: John Losey [mailto:JOHLOS_at_HBSI.COM]
Sent: Saturday, March 18, 2000 5:51 PM
To: Tru64 UNIX Managers Group (E-mail)
Subject: grep for "this" or "that"
I'm sorry for asking such a basic question, but I couldn't find what I was
looking for in the man page for grep.
I'm trying to grep the output of a script for either "Synchronized" or
"Restored". I know that if I only wanted one, I could use:
script.sh | grep "Synchronized"
But the script takes awhile to run & I needed to be able grep for either of
these at the same time.
Thanks,
John
Received on Sun Mar 19 2000 - 01:58:43 NZDT