Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/robberphex/zcat-go


https://github.com/robberphex/zcat-go

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# zcat-go

ZipCat, cat zip file from http url.

## Usage

```
zcat

Usage:
zcat [flags] [file/url] file [...file]

Flags:
-h, --help help for zcat
-l, --list list files in zip
```

## Examples

1. list file

```shell
$ ./zcat -l \
http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/ms/AliyunJavaAgent.zip
Length Date Time Name
--------- ---------- ----- ----
0 2023-09-30 17:32 AliyunJavaAgent/
33 2023-09-30 17:32 AliyunJavaAgent/version
......
--------- -------
96300319 302 files
```

2. cat file from zip file url

```shell
$ ./zcat \
http://arms-apm-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/ms/AliyunJavaAgent.zip \
AliyunJavaAgent/version
20230930173250_60ec150_2.9.2-mse
```