~gardenapple/helpar

Yet another shell script which picks the right command to extract an archive

ecc97f2 Allow implicit output dir + update README table

1 year, 6 months ago

6dfee67 Test --all-tools

1 year, 10 months ago

Helps you extract archives and list their contents.

#TODO: readme

It's supposed to be a helpful and also educational tool. Suggests the simplest command for the appropriate archive format, while also being non-destructive by default (does not overwrite existing files, does not delete the archive after extraction, etc).

Screenshot

Supported archive and compression formats:

File extenstion Tools
.tar, .tar.*, .tgz, .tbz, .txz, .tlz, .tzo tar, bsdtar, 7z
.zip unzip (zipinfo), bsdtar, 7z
.rar unrar, bsdtar, 7z
.7z 7z, bsdtar
.arj unarj², 7z
.bz2³, .bz³ bzip2 (bunzip2, bzcat), 7z
.cpio cpio, bsdtar, 7z
.deb dpkg-deb¹
.gz gzip (gunzip2, zcat), 7z
.lha lha¹, lhasa¹, bsdtar, 7z
.lrz³ lrzip (lrunzip, lrzcat)
.lz³ lzip, 7z
.lz4³ lz4 (unlz4), 7z
.lzma³ xz (unlzma, lzcat), 7z
.lzo lzop¹
.xz³ xz (unxz, xzcat), 7z
.zst³ zstd (unzstd), 7z
.exe (PE) 7z
.Z³ uncompress, 7z
.pax TODO
.hrx TODO
Others (fallback) bsdtar, 7z

Notes:

  1. Tool with limited support.
  2. Tool with very limited support.
  3. Single-file compression format. Sometimes these compression formats can store a filename, sometimes they don't (in which case the list command is useless).