If you want to replace a string in multiple files in a folder, you can use the following command:
cd /path/to/folder sed -i 's/foo/bar/g' *
In the command line above, all occurrences of “foo” will be replaced with “bar”.
If you want to replace a string in multiple files in a folder, you can use the following command:
cd /path/to/folder sed -i 's/foo/bar/g' *
In the command line above, all occurrences of “foo” will be replaced with “bar”.