Friday, October 12, 2012

Linux : search and replace string in a directory recursively

find /home/zana/folder -type f -exec sed -i 's/oldstring/newstring/g' {} \;


find . -type f -print0 | xargs -0 sed -i 's/Application/whatever/g'

No comments:

Post a Comment