gzip


Is there a way to read tar.gz top lines without uncompression?


I have 1000+ *.tar.gz files with size 4G+ each. But the only thing that I needed is the top 5 lines of each file. I am wondering whether there is a fast way to read these lines without uncompressing process (it takes 3-5 minutes to uncompress a single file).
My platform is Linux.
No, there isn't any faster way.
The issue is that .tar file is stream of concatenated original files (with some meta information). gzip then adds compression of full archive. Therefore even to just get the list of the files the archive has to be uncompressed first.

Related Links

How to get JMeter to request gzipped content?
Check the total content size of a tar gz file
Reversing the effects of mkimage to get an original gzipped file back
How can I check that the nginx gzip_static module is working?
Creating a gzip stream using zlib
Applying GZIP for a website under IIS?
How to check if a Unix .tar.gz file is a valid file without uncompressing?
gzip several files and pipe them into one input
Accept-Encoding headers being sent by browser but not received by server
serving gziped files only - a good idea?
Combining deflate and minify - am i creating overhead?
How can I decompress a gzip stream with zlib?
How does the GZip algorithm work? [closed]
Can I uncompress .NET GZipStream using zlib?
How do I tar a directory of files and folders without including the directory itself?
Yslow doesnt recognize my gzip

Categories

HOME
pug
drupal-7
wildcard
jasmine
puppet
laravel-5.2
apache2
java-home
dataframe
sequelize.js
keystore
google-shopping
finite-group-theory
cpanel
symfony-forms
zope
atlassian-plugin-sdk
flexlm
mousewheel
backpropagation
bcrypt
pipelinedb
hanami
jenkins-job-dsl
osmdroid
image-quality
pyscripter
honeysql
pmwiki
codesys
delphi-10.1-berlin
polyfills
exiftool
mediawiki-extensions
homekit
amd
rich-text-editor
email-parsing
rapidweaver
lumen-5.3
jtds
walmart-electrode
amazon-machine-learning
ogre3d
udev
tcserver
google-maps-ios
etherpad
sqlexception
inject
hspec
icefaces
aescryptoserviceprovider
wcf-ria-services
webkit2
pax-web
foxit
gradle-eclipse
brython
gradle-release-plugin
hyperthreading
application-loader
unity5.3
qbfc
paypal-nvp
calibration
subversion-edge
custom-url
activity-streams
named-ranges
gmaps4rails
odftoolkit
x-ua-compatible
surrogate-key
funkload
phpdocx
httpcontext
driver-signing
onselect
sql-server-2012-web
carddav
objcmongodb
gdataxml
bulbs
socketstream
cadisplaylink
objective-c-protocol
userid
concurrent-programming
selectonemenu
webkit-transform
dcpu-16
requestfactory
sitemappath
webrat
asp.net-mvc-controller
openwysiwyg
microsoft.ink
virtualquery
weborb

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App