Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th January 2010
J65nko J65nko is offline
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,597
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

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:
     sed [-aEnru] command [file ...]
     sed [-aEnru] [-e command] [-f command_file] [file ...]
     -E      Interpret regular expressions using POSIX extended regular ex-
             pression syntax.  The default behaviour is to use POSIX basic
             regular expression syntax.
     -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

basic regular expressions, bre, ere, extended regular expressions, sed(1)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regular expressions: renaming files with 'sed' J65nko Guides 26 15th October 2010 08:03 PM
When will be possible install BSD system on extended partitions? aleunix Off-Topic 5 15th December 2009 08:47 AM
Allow i386 and amd64 to boot from extended DOS partitions lvlamb OpenBSD General 4 16th July 2008 03:24 PM
smp support/progress for ppc f1r3p0t OpenBSD General 2 27th June 2008 11:09 AM
radeonHD support chavez243 FreeBSD General 6 13th May 2008 09:24 AM

All times are GMT. The time now is 08:26 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick