perl -pe 'print "_" if $a++;' -i.bak yourfile.txt
Lookup perlrun for more detail on what's going on there.
____________________
Jeremy
I didn't believe in evil until I dated it.
In reply to Re: modifying and overwriting a file
by jepri
in thread modifying and overwriting a file
by mndoci
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |