4.9.08

Search & Replace in multiple files - Unix+Perl

Search and replace text in files pattern matching

$ perl -i -p -e 's/<{/{{/g' `find -type f | grep .html`
$ perl -i -p -e 's/}>/}}/g' `find -type f | grep .html`

0 comments: