I have 165 files with .txt.gz type that store queries made on a browser. The problem is that the last query is always wrongly saved (because of lost connection).
What i want to do is when i'm writing the results to the STDOUT, add a newline at the end of each file, so that i can minimize this problem.
I read the files this way:
find . -type f | xargs zcat
Then i use some perl script to do some calculations.
The large amount of data stored makes decompressing the .gz files impracticable.