1

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

0

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

I think some variation of the following would work :

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

3 Comments

well, yes, and I alluded to that, but the point was to find a command that did it without the user having to string together various combinations of unix commands and perl, sed, or anything else.
also, it would be perl -pi -e (no .bak)
But you can always chain the commands yourself and put it on a simple shell script file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.