tags:

views:

168

answers:

3

Easy and fast question, I just don't want to have all of them in a big tar :-)

+2  A: 

Try a loop

$ for file in *; do gzip "$file"; done
Thrawn
This might fail on files with spaces. `gzip "$file"` is safer.
viraptor
right, corrected :-)
Thrawn
+5  A: 

You can use gzip *

Courtney Palit
Yep, it works also like that :-)
Thrawn
+3  A: 

If you want to gzip every file recursively, you could use find piped to xargs:

$ find . -type f | xargs gzip
Buddy
No need for find+xargs. Gzip can handle recursion itself: `gzip -9r .`
Idelic