built in unix / linux command for recursive find and replace?

Many people string together find and sed, or perl, or any number of other unix commands to find and replace across multiple files. But, there's a simple command that can do it for you without the hassle?

Edit: The Digital Ninja points out that it's rpl.

However this is not a built in command but, for debian based distros like Ubuntu you can simply install it with sudo apt-get install rpl

I would guess that it's available through most package managers in other *nix OSs. OS X Users can download a binary at http://www.laffeycomputer.com/rpl.html


I belive you are thinking of 'rpl' http://www.linux.org/apps/AppId_2684.html

I think some variation of the following would work :

find . -name *.extension | perl -pi.bak -e "s/text_to_be_replaced/replacement/"

Need Your Help

Hiding GroupBoxes depending on selected index of combo box

c# groupbox

I'm trying to display / hide a 2 combo boxes depending on the chosen event type.

Don't touch my shebang

python distutils virtualenv

One thing I hate about distutils (I guess he is the evil who does this) is that it changes the shebang line. In other words, the more rational and environment-vars decided scripture