Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Need to change, oh, every file at once?

by BazB (Priest)
on Jan 22, 2002 at 04:27 UTC ( [id://140545]=note: print w/replies, xml ) Need Help??


in reply to Need to change, oh, every file at once?

A slight modification on this is the following line shell script/perl one-liner that came from a short discussion on the LUG for an easy way to change email addresses in every page on my site:

for i in *.html; do perl -wpi.bak -e 's/oldusr\@olddomain/newusr\@newdomain/g' $i; done
I think I can say this is the first snippet that made me think - wow! Perl rocks! :-)

I'm sure TMTOWTDI, but I still press this code into service now and again.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found