http://qs1969.pair.com?node_id=140545


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.