Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Best way to edit a file?

by leocharre (Priest)
on Apr 02, 2007 at 17:00 UTC ( [id://607875]=note: print w/replies, xml ) Need Help??


in reply to Best way to edit a file?

Imagine you're editing a site. Some email is spelled wrong so.. you gotta open up 40k lines of html code some stupid wysiwyg spat out. .. oh dear... well..

find ~/public_html -type f -name "*.htm" -exec perl -i -pe 's/wrongo\@hi\.com/righto\@yo\.net/sig' '{}' \;

I know of a case where we had a client come in, and they had hired someone full time for 6 months to fix things in hand made html that would have taken a posix monkey five seconds to do.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://607875]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-28 17:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found