Making extracting archives plain and simple.
$ brew tap jondot/tap && brew install zx
Otherwise, grab a release from releases.
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
We are accepting PRs. Feel free to submit PRs.
To all Contributors - you make this happen, thanks!
Copyright (c) 2023 @jondot. See LICENSE for further details.