Posts Tagged linux
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 https://manpages.ubuntu.com/manpages/jammy/man1/rpl.1.html
You don’t have to struggle with tools like
sed in combination with
grep. Just use a single tool! For example:
rpl -v foo bar '**/*.txt'
It replaces “foo” with “bar” in all .txt files recursively.