matching
Quickly search and replace string with Regular expression in multiple files using perl
2010/01/27
for i in *; do perl -p -w -e ’s/a(.*)b.*/d$1e/g’ $i > temp/$i; done for i in *; do perl -pi -w -e ’s/a(.*)b.*/d$1e/g’ $i ; done […] The first one can …