in reply to modifying and overwriting a file
perl -pe 'print "_" if $a++;' -i.bak yourfile.txt [download]
Lookup perlrun for more detail on what's going on there.
____________________ Jeremy I didn't believe in evil until I dated it.