Re: Inserting strings into a file

2004-03-02 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Steve Hemond) writes: >Hi again, >As you can see, I wasn't able to build the string like this : >printf FILE "\e%-12345X @PJL JOB NAME = $ARGV[1] \n"; > >Because between double quotes the @ of @PJL will be interpolated, which >I don't want. Just

Re: Inserting strings into a file

2004-03-02 Thread John W. Krahn
Steve Hemond wrote: > > Hi again, Bonjour, > As you know, I am trying to insert a string at the beginning of a file > without overwriting its contents. Since my file is an HP/GL2 output > file, I put every hp/gl2 command and stack them into an array. I then > truncate the file, insert my specifi

Re: Inserting strings into a file

2004-03-02 Thread Rob Dixon
Steve Hemond wrote: > > As you know, I am trying to insert a string at the beginning of a file > without overwriting its contents. Since my file is an HP/GL2 output > file, I put every hp/gl2 command and stack them into an array. I then > truncate the file, insert my specific string, and then put b

Inserting strings into a file

2004-03-02 Thread Hemond, Steve
Hi again, As you know, I am trying to insert a string at the beginning of a file without overwriting its contents. Since my file is an HP/GL2 output file, I put every hp/gl2 command and stack them into an array. I then truncate the file, insert my specific string, and then put back all the command