skip to main | skip to sidebar

In Liberated Form

Thursday, January 29, 2004

Replace a string over a directory tree...

I received this tip from a coworker of mine, John Sutherland. Ever need to search and replace a string over a directory tree?

find . -name '*.html' -exec perl -pi -e 's/old text/new text/g' {} \;
Posted by RJ at 3:30 AM

0 comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2009 (1)
    • ►  December (1)
      • A Mac Mini DVI issue resolved
  • ►  2007 (1)
    • ►  August (1)
      • UML 2.0 Stencils and Templates for Visio 2007
  • ▼  2004 (19)
    • ►  August (5)
      • Mounting ISO images as drives in Windows
      • Indigo and Service Transport Neutrality
      • .NET Developer's Journal Interviews Don Box
      • Preparing IIS 5.0 for .NET
      • 10 Must Have Tools for .NET
    • ►  July (1)
      • Installing pf on FreeBSD...
    • ►  June (3)
      • OpenBSD gets its SMP on...
      • VIM and arrow keys under FreeBSD
      • OpenBSD gains pf source routing...
    • ►  May (1)
      • Skipping Winamp audio? A potential solution.
    • ►  April (2)
      • Discount Dedicated Servers
      • New hosting arrangement...
    • ►  February (1)
      • Now serving... root!
    • ▼  January (6)
      • Substituting Gecko for MSHTML
      • Replace a string over a directory tree...
      • Xen and the Art of C# Query Programming
      • Relaying mail to a remote MTA with Qmail...
      • An Outlook-style Calendar: Month Control
      • A Simple C# Logging Class...

Links

  • Visit my homepage

About Me

My Photo
RJ
Seattle, Washington, United States
View my complete profile