If your script only does a susbstitution, you can also use a one-liner:
<kbd>--perl -pi.bak -e 's/total_bytes/""/ig' directory.txt #*nix perl -pi.bak -e "s/total_bytes/\"\"/ig" directory.txt #Win32
In reply to Re: Substitution in a file
by OeufMayo
in thread Substitution in a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |