in reply to Corrector
May i humbly suggest an alternative...
#!/usr/bin/perl -pi s/this/that/; # substitutes this with that s/one/two/; # substitutes one with two
Run with: corrector.pl C:\filestochange
It doesn't have some of the interesting side effects of the original script, but i consider that a good thing.
Updated: there is no "i" in team, but there should have been one on the first line
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Corrector
by jdporter (Paladin) on Dec 02, 2008 at 18:28 UTC | |
by hossman (Prior) on Dec 02, 2008 at 19:15 UTC | |
by jdporter (Paladin) on Dec 02, 2008 at 19:23 UTC | |
by dmorgo (Pilgrim) on Dec 29, 2008 at 01:21 UTC |
In Section
Cool Uses for Perl