[wellylug] perl recursive text search and replace

Mark Signal mark at databackup.co.nz
Fri Aug 20 10:10:09 NZST 2004


I could use a little help here....

this will replace text within a nominated directory

perl -w -pi -e "s/oldinfo/newinfo/g;" targetdir/targetfile

how do I alter it to include all subdirectories?

cheers

Mark


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 19/08/2004




More information about the wellylug mailing list