View Single Post
Old 11-08-2004, 08:16 AM   #2 (permalink)
kaeli69
Registered User
 
kaeli69's Avatar
 
Join Date: Apr 2003
Posts: 30
kaeli69 is an unknown quantity at this point
As far as I know (unix ksh), you have to make a temp file, put the prepend contents in it, append the content of the old file to it, then write the temp file to the old file.

$ cat prependText > tmpFile
$ cat oldFile >> tmpFile
$ cat tmpFile > oldFile

Or however short you can make that if you play with it...
kaeli69 is offline   Reply With Quote