Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robberphex/zcat-go
https://github.com/robberphex/zcat-go
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/robberphex/zcat-go
- Owner: robberphex
- Created: 2022-11-22T01:34:49.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T06:32:19.000Z (about 1 year ago)
- Last Synced: 2025-01-21T00:14:05.871Z (6 days ago)
- Language: Go
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# zcat-go
ZipCat, cat zip file from http url.
## Usage
```
zcatUsage:
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
```