Imagine that we need to mass change the content in certain directory. A combination of find and sed can save the day. It is very to do it in perl as well.

find /your/dir -type f | xargs sed -i 's/old/new/g'
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Slashdot
  • TwitThis
  • Yahoo! Buzz