/ Published in: Bash

Replace all the occurrences of a string with a replacement in the supplied files.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
perl -pi -w -e 's/search/replace/g;' files -e means execute the following line of code. -i means edit in-place -w write warnings -p loop eg. perl -pi -w -e 's/today/tomorrow/g;' dates*.txt
Comments
