gzipping multiple files w/o tarring

Mike Jeays mike.jeays at rogers.com
Fri Oct 10 18:58:21 UTC 2008

On October 10, 2008 02:49:44 pm Joe Tseng wrote:
> I'm sure this is easy but googling hasn't gotten me anywhere yet...  I want
> to compress all the files in my directory that don't already have a .gz
> extension.  I want them to be individual compressed files, not part of a
> single .tar.gz file.  Can anyone point me to where I can find how to do
> this?
> tia,
>  - Joe
> _________________________________________________________________
> Want to do more with Windows Live? Learn “10 hidden secrets” from Jamie.
> http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!5
>_____________________________ freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"

"gzip *" will do it.  It leaves out files that already have the .gz extension.
"gunzip *" will put them back the way they were.

Mike Jeays

More information about the freebsd-questions mailing list