Posts Tagged Command line

How to replace a string in multiple files in linux command line?

Sometimes there are surprises even for long-time developers and linux users. One of these is the commandline tool rpl: , see

You don’t have to struggle with tools like sed in combination with find or grep. Just use a single tool! For example:

rpl -v foo bar '**/*.txt'

It replaces “foo” with “bar” in all .txt files recursively.


Leave a comment