xvoland / Extract

Bash/Zsh function for extract: .zip, .rar, .bz2, .gz, .zlib, .tar, .tbz2, .tgz, .Z, .7z, .xz, .exe, .tar.bz2, .tar.gz, .tar.xz, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relying on Extension

terminalforlife opened this issue · comments

While I'm sure it works most of the time, what about files which don't have a traditional extension, or one at all?

EDIT:

Okay, basically, this is what I had in mind. Thought I'd just write it myself as I figured it would be pretty neat:

https://github.com/terminalforlife/miscellaneous/blob/dev/unpack

Do you think this approach is something you would consider incorporating into your function?

It's looks nice, but it has additional dependencies like mimetype and so I think this is not good idea