in reply to Re^2: Gods of perl
in thread Gods of perl

Actually, even on very fast connections, the time to download dwarfs the time to decompress, untar, or print the names. The best way is tail -f -n+0 linux-n.n.n.tar.bz2|bzcat -vv|tar -xv.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re^4: Gods of perl
by hlen (Beadle) on Nov 04, 2004 at 23:58 UTC
    This is truth. But most people would be amazed at the actual time verbose output can cost your program. Printing is very expensive, I remember when coding a big branch-and-bound project for the cap-mst problem in college, it was responsible for like 70-80% of the total running time, which was huge. And I just couldn't believe it. So I think most people (specially non-programmers) have no idea how expensive it can be, and I can tell you I rarely use -v, unless I need it.
Re^4: Gods of perl
by nothingmuch (Priest) on Nov 17, 2004 at 09:04 UTC
    Since I run my own proxy at home, I can assume that most downloads live in the cache, so I just do:
    curl <URL> | tar -jx or wget -O - <URL> | tar -jx
    most of the time.
    -nuffin
    zz zZ Z Z #!perl