To change the file and back up the old one with .orig extension.perl -i.orig -pe 's/total_bytes/""/ig' myfile.txt
Cheers.
In reply to Re: Substitution in a file
by fundflow
in thread Substitution in a file
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |