On Tue, 2006-04-25 at 16:29 -0400, Christopher X. Candreva wrote:
> On Tue, 25 Apr 2006, G.W. Haywood wrote:
> 
> > > If you know a gunzip option that will NOT delete the compresed file,
> > > that would be the prefered method.
> > 
> > cat file.gz | gunzip > file
> 
> That's not a gunzip option -- that's (almost) exactly what I'm doing in the 
> program that I'm looking for an alternative for.

And as you stated the gunzip option "-c" that preserves the original .gz
file, does not restore the timestamp of the uncompressed file.  What you
want doesn't seem to be able to be done with a single command.  I'd say
the only option is to copy the .gz file while preserving its timestamp
then uncompress and move the backup copy back into place.

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to