[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [OT] Collective memory query



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. I have searched my notes,
> gone through the deb available and have not been able
> to find it. Might just have been something on
> SourceForge...

I'd use find . -type f | xargs perl -pi -e 'someregularexpression'

so, for example, to change all foo to bar:
    find . -type f | xargs perl -pi -e 's/foo/bar/g;'

Hope that helps,

Cheers,
-- 
Brett Parker
web:   http://www.sommitrealweird.co.uk/
email: iDunno@sommitrealweird.co.uk



Reply to: