Unix: Find/replace in all files

find . -type f -name filename.* -exec sed -i 's/stringtosearch/stringtoreplacewith/g' {} \;

Leave a Reply