Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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

by BazB (Priest)
on Jan 22, 2002 at 04:27 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-06-09 11:38 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (35 votes). Check out past polls.