Gzip

Monty J. Harder lists at kc.rr.com
Tue Jul 23 00:54:19 CDT 2002


Lucas Peet  wrote:

> I need to gzip all the files in a specific directory...there's lots of
them, and I'm not up for doing it by hand.  How can I gzip each file, >
while keeping it's original filename?

  How about:

for F in *
  do
     gzip $F && mv $F.gz $F
done




More information about the Kclug mailing list