Re: Finding lines containing foo in a file
Re: Finding lines containing foo in a file
- Subject: Re: Finding lines containing foo in a file
- From: John Hawkinson <email@hidden>
- Date: Thu, 22 Dec 2005 11:44:12 -0500
Nigel Garvey <email@hidden> wrote on Thu, 22 Dec 2005
at 16:32:57 +0000 in <email@hidden>:
> However, if any of the UNIX fans here know how to coax one 'grep' call
> into accepting several search strings at once, without erroring on any
> not found, it might still be in with a chance.
You must use egrep (Extended/expression grep, depending on who you ask),
and separate regular expressions with |'s (which you must quote from the
shell). E.g.:
egrep 'foo|bar|baz' myfile
--jhawk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden