perl -i.bak -pe ' BEGIN {chdir shift}; s/original regex/new/; ' /path/to/dir file1 file2 file3 file4 ...
-- zigdon
In reply to (z) Re: search-and-replace in files
by zigdon
in thread search-and-replace in files
by vxp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |