* SUMMARY: grep for "this" or "that"
@ 2000-03-19 1:57 John Losey
0 siblings, 0 replies; only message in thread
From: John Losey @ 2000-03-19 1:57 UTC (permalink / raw)
To: tru64-unix-managers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-03-19 1:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-03-19 1:57 SUMMARY: grep for "this" or "that" John Losey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox