• Notice regarding image hosts and attachments. See here.

Blonde moment (gzip)

Soldato
Joined
24 Nov 2002
Posts
16,376
Location
38.744281°N 104.846806°W
How go I gzip the contents of a directory as seperate files in *nix?

e.g. dir contents = 1.a, 2.b, 3.c becomes 1.a.gz, 2.b.gz etc.....

I've done this countless times and feel pretty dumb now!

Obviously "gzip *.*" works, but this gzips the existing files.. I want a compressed copy. (there are 11Gb of files)
 
Last edited:
Back
Top Bottom