remove/replace text/path in config file.


Lot of times I end up changing a particular text in config file to some other text. And when I have to do it for multiple files, all files having the text in multiple places, I end up opening the …

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