Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The built one doesn't spurt anything: if the archive contains a directory or a single file it extracts that in place, if it contains a bunch of files it will create a directory with the archive name and put the files in there. This is what I want 99% of the time.


Yes, but what if I want one file deeply nested inside a massive archive, like a source tree or something?

In the scenario you describe, I generally use the dtrx script.

http://brettcsmith.org/2007/dtrx/


As I said: 99%. I like default tools to be optimized for the common case, corner cases are just corner cases – how often are you extracting a single file from a massive source tree?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: