SUMMARY: grep for "this" or "that"

From: John Losey <JOHLOS_at_HBSI.COM>
Date: Sat, 18 Mar 2000 17:57:40 -0800

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT