Gzip
Duane Attaway
dattaway at attaway.net
Tue Jul 23 00:41:31 CDT 2002
On Mon, 22 Jul 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?
hmmmm... let me find a directory I don't mind munging to try this out...
ok... it works!
gzip *
that would append a .gz to each filename, but you mentioned the name
shouldn't be changed, so, how about...
gzip -S "" *
would append a null suffix to each filename, leaving it unchanged;
however, the authors of gzip apparently do not wish to have that happen as
it burps out the following:
gzip: incorrect suffix '(null)'
:(
More information about the Kclug
mailing list