pcre in base system

Rasmus Kaj kaj at kth.se
Sun Feb 20 19:32:26 GMT 2005


>>>>> "JLH" == Jeremie Le Hen <jeremie at le-hen.org> writes:

 >> But, well, it would actually be nice if PCREs would be available as an
 >> *option*. Analogue to grep, grep -E / sed, sed -E, ...

 JLH> Note that the pcre port is shipped with the pcregrep command.
 JLH> There is unfortunately no pcresed or pcreawk command.

If someone wants a *really* perl compatible sed, why not just use
perl?

perl -p -e 's/regex/replacement/'

is the same thing as

sed -e 's/regex/replacement/'

except, of cource, for the differences in regex (and replacement)
syntax.  A similar replacement is easily created for awk (see the
perlrun manpage).


-- 
Rasmus Kaj ----------------------------------------------- rasmus at kaj.se
 \ Send me all ``mail viruses'' you want - I use Unix, secure by default.
  \------------------------------------- http://www.stacken.kth.se/~kaj/


More information about the freebsd-current mailing list