how to replace a string in all files in a directory linux code example
Example: How to replace a string in multiple files in linux command line
cd /path/to/your/folder
sed -i 's/foo/bar/g' *
cd /path/to/your/folder
sed -i 's/foo/bar/g' *