perl -i.bak -pe 'print "New line here\n" if $. == 1' file
--
John.
In reply to Re: need help:insert a line in a textfile
by jmcnamara
in thread need help:insert a line in a textfile
by star7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |