in reply to Replacing one string with another string
Not too tough. About that tough.use File::Find; find sub { push @ARGV, $File::Find::name if /\.INF$/; }, "."; $^I = ".BAK"; while (<>) { s/Name/Fullname/g; print; }
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Replacing one string with another string
by lindex (Friar) on Aug 18, 2000 at 10:30 UTC | |
by merlyn (Sage) on Aug 18, 2000 at 11:24 UTC | |
by lindex (Friar) on Aug 18, 2000 at 13:50 UTC |