Bash: Simple command to mass replace content in directory

Imagine that we need to mass change the content in certain directory. A combination of find and sed can save the day. It is very to do it in perl as well.

find /your/dir -type f | xargs sed -i 's/old/new/g'
Like it.? Share it:
Tags: ,

Comments are closed.