Recursive Search and Replace

This post is mostly a reference for me.

This is my favorite perl one line command

perl -p -i -e ’s/oldstring/newstring/g’ *

Read the full article at Joseph Scott’s Blog

Popularity: 12%

1 Comment

  1. Vim - Multiple Files said,

    April 9, 2008 at 1:12 pm

    […] common, like a new link. Sure, sometimes there are other methods of doing this, like a simple command line search and replace perl script . Sometimes though, the regular expression is just too much of a pain to write, and it’s just […]

Post a Comment

Close
E-mail It