...more recent posts
Nice one liner to recursively replace all occurrences of 'foo' with 'bar' in all .html files in the current directory and below:
find . -name "*.html" -print | xargs sed -i 's/foo/bar/g'
Nice one liner to recursively replace all occurrences of 'foo' with 'bar' in all .html files in the current directory and below:
find . -name "*.html" -print | xargs sed -i 's/foo/bar/g'