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?