[SunHELP] insert one line at beginning of text file; efficiently
Dale Ghent
daleg at elemental.org
Tue Sep 2 18:59:28 CDT 2003
On Tuesday, September 2, 2003, at 05:51 PM, Markham, Richard wrote:
> This code will be intercepting print data which could be lengthy and
> that is why I am concerned with efficiency. If I have to go with temp
> files I will add a time stamp to avoid multiple tasks overwritting
> each other.
perl -e 'print "\n"; while(<>){ print;}' < inputfile > outputfile
/ek
http://elektronkind.org/
Psytrance: it's post-grad school for ravers.
More information about the SunHELP
mailing list