perl -i.orig -pe 'BEGIN{$localvar = "xyz"}; s!http://domain.com/folder +/subfolder!http://domain.com/newfolder/newsubfolder/$localvar!g' your +_filename more_files
In reply to Re: search and replace text in multiple files in a directory
by borisz
in thread search and replace text in multiple files in a directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |