4 ms·
How often do you use gzip verbose? I don't think I've ever used it. What's it good for?
by OskarS 6y ago
How often do you use gzip verbose? I don't think I've ever used it. What's it good for?
- jandrese 6y agoPretty much just to make sure you're not wasting your time with the gzip. But I also don't use gzip much these days. pbzip2 is a drop in replacement that is faster and compresses better.
- zbuf 6y agoPersonally a fan of '--verbose' to be honest. It's clear. "grep -v" anyone?
- frenchy 6y agoParticularly in this case, because `-v` sometimes means "print out the version number".
- jfrunyon 6y agoThat's why they mentioned `grep -v`. Go look it up. It doesn't mean verbose OR version. Doubt you'd be printing out a version number in a shell script though.
- cogburnd02 6y agoYou may want to compare a version number of a command to make sure it's bigger than (or equal to) the minimum version required by your script, though.
- codazoda 6y ago>-v, --invert-match > Selected lines are those not matching any of the specified patterns. For the lazy. Edit: I don't know hackernews formatting and I'm among the lazy, so... Marked as "won't fix".
- mattkrause 6y agoOf all the options, it is so fitting and proper to use the long form for —-verbose.
- ryanianian 6y agoIt's useful when debugging your artifacts. It's a nice shortcut for adding a `find` after the `tar` invocation. Outside of debugging I've never seen the gzip/tar verbose output as anything other than clutter.
- adrianmonk 6y agoIt shows you the percentage reduction in size. It's rare that I'd use it in a script. Perhaps I'd use it for a script whose main purpose is creating an archive to be widely distributed. Then the info might be of interest to the script's user. But your comment brings up a good point about the difficulty of deciding what short flags truly are widely known. I assumed anyone who uses gzip regularly would know "-v", but maybe that isn't true.