ZipRanger is a command-line interface (CLI) tool designed for selectively extracting files from ZIP archives. The providing server must support range requests for the tool to work correctly.
Be aware that while the tool attempts the number of requests sent, there are opportunities for further optimization. Nonetheless, the tool is generally functional for most use cases as it is.
To list the files contained in a ZIP archive, run the following command:
zipranger -u {url} -filelistIf you need to route your requests through a proxy, specify the protocol and address as shown:
zipranger -u {url} -p proto://host:port -filelistTo extract specific files from the ZIP archive, provide a list of patterns following the necessary flags. The tool supports wildcards and uses filepath.Match for pattern matching.
zipranger -u {url} -x documents/*.txt pictures/*.pngTo attach custom HTTP headers to your requests, use this format:
zipranger -u {url} -H "User-Agent: <agent>" -H "Authorization: <auth>"