On Mon, Jan 12, 2004 at 03:30:27PM +1000, Taco Fleur wrote:

> Is there some way to prepend data to a file, instead of append?
> 
> Really what I am after is prepending column names to a LARGE text file, without 
> reading the whole file into memory.

What OS?

Create a text file with the header information only then:

- WINDOWS
  open a DOS session
  copy header_file.txt + large_file.txt destination.txt
  
- *nix
  cat header_file.txt large_file.txt > destination.txt

NOTE: Make *sure* you've got a backup of the large file. Getting
these sorts of commands wrong is easy, and very painful.

Cheers

Paul Haddon
Technical Services Manager
Formstar Print Technologies


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to