https://github.com/jondot/zx
Make extracting archive plain and simple
https://github.com/jondot/zx
rust-lang tar unpack zip
Last synced: 11 months ago
JSON representation
Make extracting archive plain and simple
- Host: GitHub
- URL: https://github.com/jondot/zx
- Owner: jondot
- License: apache-2.0
- Created: 2023-01-21T12:47:58.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T19:29:48.000Z (almost 3 years ago)
- Last Synced: 2025-01-11T02:19:23.240Z (about 1 year ago)
- Topics: rust-lang, tar, unpack, zip
- Language: Rust
- Homepage:
- Size: 28.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# zx - unpack archives
Making extracting archives plain and simple.
## Setup
```
$ brew tap jondot/tap && brew install zx
```
Otherwise, grab a release from [releases](https://github.com/rusty-ferris-club/recon/releases).
## Usage
Any of these will work:
```
$ zx files.tar.gz
$ zx files.tar.zst
$ zx files.tar.bz2
$ zx files.gz
$ zx files.txz
$ zx files.zip
.. and more ..
```
Extract to a folder:
```
$ zx files.tar.gz out
```
Strip one component (remove wrapper folder) from all paths:
```
$ zx --strip 1 files.tar.gz out
```
Filter only matching entries (given a regex):
```
$ zx --filter 'foo/.*' files.tar.gz out/
```
List an archive:
```
$ zx --list files.tar.gz
```
# Contributing
We are accepting PRs. Feel free to [submit PRs](https://github.com/jondot/zx/pulls).
To all [Contributors](https://github.com/jondot/zx/graphs/contributors) - you make this happen, thanks!
# License
Copyright (c) 2023 [@jondot](http://twitter.com/jondot). See [LICENSE](LICENSE.txt) for further details.