tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: John Losey <JOHLOS () HBSI ! COM>
To: tru64-unix-managers
Subject: SUMMARY: grep for "this" or "that"
Date: Sun, 19 Mar 2000 01:57:40 +0000	[thread overview]
Message-ID: <96079341819610.tru64-unix-managers.marc@archive.invalid> (raw)

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@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

                 reply	other threads:[~2000-03-19  1:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox