4 ms·
There is some merit to "doing one thing well", but taken to the extreme it can be horrible in a different way: tar cvf - FILE-LIST | gzip -c > FILE.tar.gz (ht
by jobu 11y ago
There is some merit to "doing one thing well", but taken to the extreme it can be horrible in a different way:
tar cvf - FILE-LIST | gzip -c > FILE.tar.gz
(https://xkcd.com/1168/ https://xkcd.com/1168/)
- ainar-g 11y agoRob in that comic clearly hasn't used Unix long enough to know about the Arnold mnemonic[1]. [1] http://i.imgur.com/Vf0An8J.png http://i.imgur.com/Vf0An8J.png
- J_Darnley 11y agoWhat kind of tar are you both using that doesn't detect the compression type? tar -xf FILE is fine.
- chubot 11y agoI just use GNU long options now, e.g.: $ tar --extract --verbose --gzip < foo.tar.gz $ tar --create --gzip --file sql.tar sql/ After switching to this style I never have problems coming up with the correct command. It's a lot easier to read in shell scripts too.
- an_ko 11y agoJust alias it.