To find and replace across many files, following perl command will do your job faster and cleaner. This command just search for the string "this" replace the string with "that" across all files with the extension "*.sav", along with that it saves the original files with the extension "*.bak"
perl -pi.bak -e 's/this/that/' *.sav
perl -pi.bak -e 's/this/that/' *.sav
0 Comments:
Post a Comment
<< Home