Operating System - HP-UX
1753844 Members
7323 Online
108806 Solutions
New Discussion юеВ

gunzip to a different destination than it's source.

 
SOLVED
Go to solution
Edgar Arroyo
Regular Advisor

gunzip to a different destination than it's source.

Ok, I give up, I've checked on google and I can't find the right way of doing this on HP-UX, someone please make it simple for me.

Thanks.
4 REPLIES 4
Sridhar Bhaskarla
Honored Contributor

Re: gunzip to a different destination than it's source.

Hi,

try 'gzcat yourfile.gz > /somewherelse/yourfile'

On HP you should have gzcat in /usr/contrib/bin.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Patrick Wallek
Honored Contributor
Solution

Re: gunzip to a different destination than it's source.

You can also do:

# gunzip < /dir/file.gz > /otherdir/file
Edgar Arroyo
Regular Advisor

Re: gunzip to a different destination than it's source.

gunzip

That does not work.
George E. Holland_1
Occasional Advisor

Re: gunzip to a different destination than it's source.

Ed.
try gzip -d filename.gz >/newdir/filename
I tried this on 11.11 and worked ok.

George