curl - download part of gzipped text file -


i have large gzipped text files on ftp server, updated regularly, ie. lines added text files , gzipped again. there way access new lines without having download new .gz each time updated?

my extremely naive try was

curl -o part_of_file.gz -r0-10000,-10000 ftp.<source>/file.gz 

to download first 10000 bytes (in case there header) , last 10000 data i'm interested in, but, without surprise gunzip gives "unexpected end of file" error apparently gzip not work way.

no, not possible. need decompress of data in gzip file in order uncompressed data @ end.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -