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.
MIT License
472 stars 82 forks source link

Relying on Extension #11

Closed ghost closed 6 years ago

ghost commented 6 years ago

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?

xvoland commented 6 years ago

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