Blog Archive

Tuesday, June 23, 2015

replace in mulitple files

perl -p -i.bak -w -e 's|OldPattern|NewPattern|g' SomeFile*
This will replace all the
OldPattern
with
NewPattern

in all the SomeFile*


No comments:

Post a Comment