View Single Post
  #1   (View Single Post)  
Old 25th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,593
Default sed(1) support for Extended Regulare Expressions (ERE)

Only a few days ago I noticed this ERE support in snapshots, which has been in for more than 5 months already.

From cvsweb

Quote:
Fri Aug 7 03:30:56 2009 UTC (5 months, 2 weeks ago) by djm

add -E flag to compile regular expressions using the extended POSIX
syntax. The -E flag is compatible with the other BSDs and OSX. -r is
also provided as an alias for compatibility with GNU sed.
From the man page:
Code:
SYNOPSIS
     sed [-aEnru] command [file ...]
     sed [-aEnru] [-e command] [-f command_file] [file ...]
[snip]
     -E      Interpret regular expressions using POSIX extended regular ex-
             pression syntax.  The default behaviour is to use POSIX basic
             regular expression syntax.
[snip]
     -r      An alias for -E, for compatibility with GNU sed.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote