sed: global regexp replacement one-liner
A long-forgotten, recently-recovered gem:
sed -i 's/[old]/[new]/g' [filenames]
This will replace all occurrances of [old] with
[new] in all the named files.
A long-forgotten, recently-recovered gem:
sed -i 's/[old]/[new]/g' [filenames]
This will replace all occurrances of [old] with
[new] in all the named files.
Readers' Comments