Re: Adding text to a compressed file without uncompressing

Páxina inicial
Anexos:
Mensaxe orixinal
+ (text/plain)
+ (text/html)
+ (text/plain)
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Bob Elzer
Data:  
Para: Main PLUG discussion list
Asunto: 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