regular expression, sed and grep tuturials and tricks.


Simply a great one page article on sed and use of regular expressions. <a href="" …

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


for i in *; do perl -p -w -e &#8217;s/a(.*)b.*/d$1e/g&#8217; $i > temp/$i; done for i in *; do perl -pi -w -e &#8217;s/a(.*)b.*/d$1e/g&#8217; $i ; done […] The first one can …

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