gzipping multiple files w/o tarring

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Fri Oct 10 19:42:47 UTC 2008


>
> "gzip *" will do what you want.
>
> When it encounters something that's already gzip'd, it will skip it,
> but will emit a warning that it's doing so.
>
> Otherwise, you could use something like:
>
> find -X . \! -name "*.tar.gz" -type f -maxdepth 1 | xargs gzip
>
i don't understand the difference.

.tar.gz files are already gzip'd :), so no need for second case. it will 
be skipped anyway


More information about the freebsd-questions mailing list