Quickly search and replace string with Regular expression in multiple files using perl


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 …

This website uses cookies to ensure you get the best experience on our website. Learn more Got it