• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help with simple grep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Help with simple grep (From: "Mark J. Reed" <email@hidden>)
 >Re: Help with simple grep (From: "Mark J. Reed" <email@hidden>)
 >Re: Help with simple grep (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Get sender in Apple Mail
  • Next by Date: Re: scope problem
  • Previous by thread: Re: Help with simple grep
  • Next by thread: Get sender in Apple Mail
  • Index(es):
    • Date
    • Thread