Re: Help with simple grep
Re: Help with simple grep
- Subject: Re: Help with simple grep
- From: "Mark J. Reed" <email@hidden>
- Date: Sat, 30 Aug 2008 12:53:27 -0400
FYI, even without -E (or being invoked as 'egrep', which has the same
result), grep on OS X (which is GNU grep) still understands the
'extended' RE syntax features; it's just that the meaning of
backslashes is reversed for them, to maintain backward compatibility
with older versions of grep. Thus,
grep '[0-9]+'
looks for a digit followed by a literal plus sign, but
grep '[0-9]\+'
looks for one or more digits. You can likewise use \| for alternation, etc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden