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
Post a Comment