Re:Show HN: Extract it – Because nobody can remember tar com...
by scintill76 on Thursday September 10, 2015 @07:41PM
(#10201223)
var input = document.querySelector('#leInput'),
commands = {
'.tar': 'tar xfv',
'.zip': 'unzip',
'.tar.bz2': 'tar jxvf',
'.tar.gz': 'tar xfvz',
'.tar.bz': 'tar xjf',
};
I don't think the difference between .bz2 and .bz makes any sense. Am I wrong, or is it just that bz2 extracts verbosely and bz doesn't? I'd guess these flags were copied from some random sources without the author realizing they are nearly equivalent.I know difficulty with tar is a meme[1], but once you get over that "j" means bz2, why is it hard to remember V for Verbose, Z for gZip, X for eXtract, F for File (which you'll almost always be passing)? I ask this both rhetorically because it shouldn't be hard, but also because I am sometimes oddly hesitant when forming tar commands. But not enough to reach for a web page.
Re:Show HN: Extract it – Because nobody can remember tar com...
by mahouse on Friday September 11, 2015 @06:02AM
(#10202854)
It's not hard at all. I personally memorised "zxvf", and change z accordingly, or remove v if it's a shitload of files and it floods my terminal.
Re:Show HN: Extract it – Because nobody can remember tar com...
by redwards510 on Thursday September 10, 2015 @07:24PM
(#10201162)
That's the first thing I tried too. I thought the site was broken because there's no button to push and after hitting enter nothing happened. It's ok if you don't support everything yet, but at least have a message saying "Not yet implemented" or something, please.
It looks like it does not recognise other usual things such as .gz alone or .tgz: https://github.com/Mawalu/extract-it/blob/gh-pages/main.js