Replacing all occurence of a string by another with sed recursively in directory
There is some command that I use once in a while and I always have to search for samples how to use it. This one replace all occurence of a string by another recursively in a directory.
Sample command
sed -i 's/HELLO/hello/g' `find -type f`
will replace all occurence of HELLO by hello in all files
for french accents :
sed -i 's/é/é/g' `find -type f` sed -i 's/à/à/g' `find -type f` sed -i 's/É/É/g' `find -type f` sed -i 's/Á/À/g' `find -type f` sed -i 's/â/â/g' `find -type f` sed -i 's/Â/Â/g' `find -type f` sed -i 's/è/è/g' `find -type f` sed -i 's/È/È/g' `find -type f` sed -i 's/ê/ê/g' `find -type f` sed -i 's/Ê/Ê/g' `find -type f` sed -i 's/ù/ù/g' `find -type f` sed -i 's/Ù/Ù/g' `find -type f` sed -i 's/û/û/g' `find -type f` sed -i 's/û/Û/g' `find -type f` sed -i 's/Û/Û/g' `find -type f` sed -i 's/ç/ç/g' `find -type f` sed -i 's/Ç/Ç/g' `find -type f`

