On Mon, Sep 27, 2004 at 01:07:40PM +0100, Simon Huggins wrote:
> On Mon, Sep 27, 2004 at 12:48:03PM +0100, Dale Amon wrote:
> > A couple years ago I ran across a sed like program
> > that will recursively descend through a tree and apply
> > specified edits in place.
> > Has anyone else run across a program of this nature?
>
> This is probably more appropriate for -user but did you mean perl -pi?
>
> e.g. find some_dir -type f|xargs perl -pi -e 's/foo/bar/; s/wibble/wobble/'
find some_dir -type f | xargs sed -i -e 's/foo/bar/' -e 's/wibble/wobble/'
Should work fine with more recent seds (sarge/sid has proper version).
regards
fEnIo
--
_ Bartosz Fenski | mailto:fenio@o2.pl | pgp:0x13fefc40 | IRC:fEnIo
_|_|_ 32-050 Skawina - Glowackiego 3/15 - w. malopolskie - Polska
(0 0) phone:+48602383548 | Slackware - the weakest link
ooO--(_)--Ooo http://skawina.eu.org | JID:fenio@jabber.org | RLU:172001
Attachment:
signature.asc
Description: Digital signature