in reply to Replace across files (extreme newbie)
This will find all files, starting in the current directory, and do the replacement intended. If you do not have access to the find command, you're probably going to want to look at File::Find, as it's the standard perl module to handle recursively finding files, and letting you perform some editting on each.find . -type f -exec perl -pi -e "s/string x/string y/g" {} \;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Replace across files (extreme newbie)
by takshaka (Friar) on May 23, 2000 at 23:21 UTC |