$ perl -pwle 'BEGIN {print "First Line!"}' your_file
Or even
$ perl -Mstrict='}, print +("First Line"), qw {' -pwle1 your_file
Abigail
In reply to Re: need help:insert a line in a textfile
by Abigail-II
in thread need help:insert a line in a textfile
by star7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |