Adding text to a compressed file without uncompressing

Bob Elzer bob.elzer at gmail.com
Thu Oct 31 07:41:26 MST 2013


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" <
Bryan.ONeal at theonealandassociates.com> 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 - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20131031/47bcf839/attachment.html>


More information about the PLUG-discuss mailing list