man gzip, see option -c and "ADVANCED USAGE"

raymundo

Rigler, S C (Steve) wrote:

Read "man gzip".

houuc8 %ls -l
total 132
-rwxr-xr-x 1 rigler itsadm 134072 Jan 27 07:22 foo
houuc8 %gzip foo -c >bar.gz
houuc8 %ls -l
total 189
-rw-rw-r-- 1 rigler itsadm 56904 Jan 27 07:22 bar.gz
-rwxr-xr-x 1 rigler itsadm 134072 Jan 27 07:22 foo

-Steve

-----Original Message-----
From: Jianping Zhu [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 7:16 AM
To: redhat list
Subject: Re: one question about gzip


Sorry for bad English.

I was trying to compress file foo and store it in file named bar.gz ( I
was
not trying to compress a compressed file). the command "gzip foo" will
give the file a name foo.gz defaultly. Is there a command by using which I
can redirect the output compressed file to bar.gz ( not foo.gz)
Thanks
On 26 Jan 2003, Drew Einhorn wrote:


Why?

Unless you have violated the usual naming conventions and bar.gz
has not already been gzipped,  which is just plain confusing and will
eventually bite someone when they are confused.

Compressing a compressed file doesn't work.  The file will probably
increase in size.

gunzipping the file then using a better compression program such a bzip
would probably be useful.  but might not be worth the trouble unless the
uncompressed file is really big.

On Sun, 2003-01-26 at 20:46, Jianping Zhu wrote:

I have a file foo, I to gzip it.
by using "gzip foo"
It will get a file called foo.gz

but i want a compress file named bar.gz

Is there a way to do that?

Thanks





--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list




--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



--------------------------------
Jianping Zhu
Department of Computer Science
Univerity of Georgia Athens, GA 30602
Tel 706 5423900
--------------------------------


--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to