in reply to Replacing one string within a file with another string
See File::Find for the ability to scan an entire tree.
If I were on a *NIX box, I would use:
perl -i.bak -ne 's/Name/FullName/g; print' `find . -name *.INF`
find in backticks to traverse the tree.
It's not cross-platform like tye's solution below, but I'm almost as big a Linux bigot as I am a Perl bigot...
:-)
Russ
Brainbench 'Most Valuable Professional' for Perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Replacing one string within a file with another string
by tye (Sage) on Aug 18, 2000 at 03:38 UTC | |
by Russ (Deacon) on Aug 18, 2000 at 03:44 UTC |