go ahead... be a heretic | |
PerlMonks |
Re: Single line insert to the start of a fileby aaron_baugher (Curate) |
on Aug 16, 2012 at 09:57 UTC ( [id://987724]=note: print w/replies, xml ) | Need Help?? |
Assuming a *nix system, and the existence of a real-world problem to be solved rather than a homework problem in a particular language: head -1 file1 >/tmp/file.$$; cat file2 >>/tmp/file.$$; mv /tmp/file.$$ file2Aaron B.
In Section
Seekers of Perl Wisdom
|
|