in reply to need help:insert a line in a textfile
$ perl -pwle 'BEGIN {print "First Line!"}' your_file
Or even
$ perl -Mstrict='}, print +("First Line"), qw {' -pwle1 your_file
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: need help:insert a line in a textfile
by jmcnamara (Monsignor) on Sep 11, 2003 at 13:32 UTC |