Thursday, November 12, 2015

How to replace string in all files recursively on Linux?

Next Linux command replaces string 'old_data' by string 'new_data' in all files in current directory on Linux:

find . -type f -exec sed -i 's/old_data/new_data/g' {} +

No comments:

Post a Comment