darklord_999 has asked for the wisdom of the Perl Monks concerning the following question:
I have a 2 files as below
File1:
HEADER XXXXX YYYYY ZZZZZ EOF
File2:
AAAAA BBBBB CCCCC DDDDD EOF
How can I get the first line from File1 and insert it into the first line of File2?File 2 ultimately should look like below:
HEADER AAAAA BBBBB CCCCC DDDDD EOF
Is there a single liner which can do this ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Single line insert to the start of a file
by aaron_baugher (Curate) on Aug 16, 2012 at 09:57 UTC | |
|
Re: Single line insert to the start of a file
by Anonymous Monk on Aug 16, 2012 at 07:18 UTC | |
|
Re: Single line insert to the start of a file
by cheekuperl (Monk) on Aug 16, 2012 at 07:38 UTC | |
|
Re: Single line insert to the start of a file
by trizen (Hermit) on Aug 16, 2012 at 09:52 UTC | |
|
Re: Single line insert to the start of a file
by kcott (Archbishop) on Aug 16, 2012 at 10:14 UTC | |
|
Re: Single line insert to the start of a file
by aitap (Curate) on Aug 16, 2012 at 08:24 UTC |