Tar has a built in append feature so you can add files to the archive...

Take a look at it and see if you can get it to do what you are after?

http://linuxcommand.org/man_pages/tar1.html


On Thu, Oct 31, 2013 at 7:41 AM, Bob Elzer <bob.elzer@gmail.com> wrote:

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@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@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss

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



--
A mouse trap, placed on top of your alarm clock, will prevent you from rolling over and going back to sleep after you hit the snooze button.

Stephen