Tuesday, May 6, 2008

To replace strings in multiple files, do the following:

$find -name '*.txt' -print0 | xargs -0 perl -pi -e 's/old/new/g'