find . -type f -exec grep -l “text-to-search” {} +
Month: January 2014
how to replace text string in multiple files in multiple folders or directories in Linux
find ./ -type f -exec sed -i ‘s/old-string/new-string/g’ {} \;
find . -type f -exec grep -l “text-to-search” {} +
find ./ -type f -exec sed -i ‘s/old-string/new-string/g’ {} \;