Re: Adding text to a compressed file without uncompressing

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: Bob Elzer
Date:  
To: Main PLUG discussion list
Subject: Re: Adding text to a compressed file without uncompressing
Concatenate the files

cat textile compressedfile > newfile

Or    cat textile compressedfile textile > newfile


But I don't think you'll be able to uncompress the new file afterwards.

You will then need to find a way to remove the lines to uncompress the
original file
On Oct 31, 2013 1:40 AM, "Bryan O'Neal" <
> wrote:

> So lets say I have a few hundred lines of test I need at the beginning
> or end of a big compressed text file. Say a 20GB uncompressed / 4GB
> compressed JSON or XML doc. Now lets say I have no desire to
> uncompressed this file and I have no desire to use interactive tools
> like vim. How could I achieve this?
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss