From owner-freebsd-current@FreeBSD.ORG Sun Feb 20 19:32:26 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0697E16A4CE for ; Sun, 20 Feb 2005 19:32:26 +0000 (GMT) Received: from kashyyyk.admin.kth.se (kashyyyk.admin.kth.se [130.237.31.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA6E943D39 for ; Sun, 20 Feb 2005 19:32:24 +0000 (GMT) (envelope-from kaj@kth.se) Received: from kashyyyk.admin.kth.se (localhost.localdomain [127.0.0.1]) by kashyyyk.admin.kth.se (8.13.1/8.13.1) with ESMTP id j1KJWNYb032222; Sun, 20 Feb 2005 20:32:23 +0100 Received: (from kaj@localhost) by kashyyyk.admin.kth.se (8.13.1/8.13.1/Submit) id j1KJWMOD032219; Sun, 20 Feb 2005 20:32:22 +0100 X-Authentication-Warning: kashyyyk.admin.kth.se: kaj set sender to kaj@kth.se using -f Sender: kaj@kashyyyk.admin.kth.se To: Jeremie Le Hen References: <72c3a957050217031230598f63@mail.gmail.com> <86zmy3qmm2.wl%sf@FreeBSD.org> <72c3a957050217065223729f83@mail.gmail.com> <20050217185422.GJ57256@cirb503493.alcatel.com.au> <20050218003534.GA31807@neveragain.de> <20050218080214.GQ82324@obiwan.tataz.chchile.org> From: Rasmus Kaj Organization: http://www.stacken.kth.se/ - Stacken computer club, Stockholm X-Face: M9cR~WYav<"fu%MaslX0`43PAYY?uIsM8[#E(0\Xuy9rj>4gE\h3jm.7DD?]R8*^7T\o&vT U@[53Dwkuup4[0@gw#~kyu>`unH?kVj9CJa02(h>Ki\+i=%rn%sDf^KC.!?IHkKjMAbkd\jgmphp^' d|Q; OeXEAhq?ybGqOs1CHb6TJT42'C`Krnk61//AOfXtNjj/t'`5>Vw0QX!dKfOL$.f+S"LIuwR<;I Z0Qnnx(F^F]o@*V%TUtEV'1Z[TkOl^FFV9Z~A[b19%}uP*,huCU Date: 20 Feb 2005 20:32:22 +0100 In-Reply-To: <20050218080214.GQ82324@obiwan.tataz.chchile.org> Message-ID: Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Mon, 21 Feb 2005 12:45:58 +0000 cc: Dennis Koegel cc: freebsd-current@freebsd.org Subject: Re: pcre in base system X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Feb 2005 19:32:26 -0000 >>>>> "JLH" == Jeremie Le Hen 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@kaj.se \ Send me all ``mail viruses'' you want - I use Unix, secure by default. \------------------------------------- http://www.stacken.kth.se/~kaj/