I am not sure of what you want exactly, but if you want to get rid of bakcup files, you can do something like this:
$ perl -i.bak -pe 's/ / /g; END {unlink "*.bak"}' file.txtThis is *nix syntax, but I guess you could have this untested equivalent under Windows:
perl -i.bak -pe "s/ / /g; END {unlink qq/*.bak/}" file.txtIn reply to Re: Question regarding options like -i -n -p
by Laurent_R
in thread Question regarding options like -i -n -p
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |