Annoying habits (I)
is it that hard to put things inside a directory?
From now on, I'll post from time to time comments about things I find annoying. This had to be the first one for sure:
You download a piece of software (is it not a matter if it is a tgz, tbz, zip, rar, whatever file):
[prunus] ~/red5> ls -l
-rw-r--r-- 1 pxgo pxgo 59768131 Feb 28 20:53 red5-0.7.0.tar.gz
Then you decompress it:
[prunus] ~/red5> tar -zxvvf red5-0.7.0.tar.gz
[ ... ]
Just to find the current directory full of files and directories:
[prunus] ~/red5> ls
Makefile doc red5-0.7.0.tar.gz red5-shutdown.sh src
build.properties ivy.xml red5-debug.bat red5.bat swf
build.xml lib red5-debug.sh red5.jar webapps
conf license.txt red5-shutdown.bat red5.sh
Is it really that difficult to put all those files into a directory before creating the tarball/zip/whatever?
oh mate ! what a truth ! Is one of the most annoying things in a sysadmin work day.
Eh... broken standard!!!
It's a common consent to store a top directory with the tarball... everybody knows that! :D
It really drives me mad, from time to time it happens to me that I forget some people do that, and I end up with a directory full of mixed things. And then you have to play with find, pipes, xargs and friends to solve the problem.
It's a PITA!
+1 very annoying
tar ztf brokentarball.tgz | xargs rm
is the solution IIRC - but in the worst case a file already existed and got overwritten by the stupid tarball. When I suspect that the tarball was made in this stupid way, I put it into an empty directory first... but who would always suspect things?
Haha, look who's reading your blog:
Also a little correction: if the tarball in question contains directories, then adding -r to the end would be suggested, so directories get removed too:
tar ztf brokentarball.tgz | xargs rm -r
There are no trackbacks.