Cx: A bash function for comfortable extraction of *.tar/*.tar.gz/*.tar.bz2
scratchingmyownitch.com
scratchingmyownitch.com
the extract_archive() in http://github.com/Rydgel/archlinux/blob/master/.zshrc
but yours looks like it takes care of other things like archives within archives.
It detects and extracts .7z .a .ace .arj .cab .cpio .deb .lha .pmd .rar .rpm .tar{,.gz,.Z,.bz2,.xz} .tnef .zip (including .jar, .xpi etc) .zoo and MIME/uuencoded mail attachments without ever splattering multiple files over the current directory. Haven't compared to dtrx.
Although you're supposed to already package things like this, I think everyone's been through the "oh damn, now there is 20 new files and directories, which is what" before.
tar -xf file
Will happily extract tar, tgz, tbz and more.
I think the only reason for this is no one expected us to still be using FUCKING UNIX at this point in history.
(Seriously... Open does not mean Good, will the OSS community ever 'start fresh'?)