in reply to Scripts to recursively reading in HTML files
Windowsperl -pibak -e 's/src\=\"\'/src\=\'\.\.\//' `find /basepath -name *.ht +ml`
This will perform substitution on all html files underneath the specified base directory, and make a backup file (ext bak) for each edited file. You'll probably want to season to taste, and practice on a backup a couple times.for /f %i in ('dir /s/b d:\basepath | findstr html$') do perl -pibak - +e 's/src\=\"\'/src\=\'\.\.\//' %i
|
|---|