1824947 Members
3571 Online
109678 Solutions
New Discussion юеВ

Re: unzip in hp-ux

 
SOLVED
Go to solution
Ravi_8
Honored Contributor

unzip in hp-ux

Hi, all
In hp-ux 11.0 we have gunzip, so that we can gunzip all gzip files. but how to unzip a zip file. i tried using gunzip to zip files, but it gives me the error
#gunzip ri202-L010920.zip
gunzip: ri202-L010920.zip: unknown suffix -- ignored
does anybody has done unzipping pls respond.

TIA
never give up
9 REPLIES 9
Alex Glennie
Honored Contributor

Re: unzip in hp-ux

Isn't zip a pc format encoding (for want of a better word) .... in which case you will need to unzip it on a pc and then ftp it over to hpux ?

I'm not sure if there are any utilities under hpux that
will work on zipped files but if there are I'm sure someone will post to this forum shortly .... just my $ 0.02
Frederic Sevestre
Honored Contributor

Re: unzip in hp-ux

Hi Ravi
If you move your ri202-L010920.zip
to ri202-L010920.gz, it is possible to unzip it using gunzip.
I have ever tested it with a text file, it worked propelly

Fr?d?ric
Crime doesn't pay...does that mean that my job is a crime ?
Santosh Nair_1
Honored Contributor
Solution

Re: unzip in hp-ux

You would need to download zip/unzip utilites in order to unzip a file. They're available at the HP Porting Center:

http://hpux.cs.utah.edu/hppd/hpux/Misc/unzip-5.42/

http://hpux.cs.utah.edu/hppd/hpux/Misc/zip-2.3/

-Santosh
Life is what's happening while you're busy making other plans
harry d brown jr
Honored Contributor

Re: unzip in hp-ux

gunzip will "unzip a zip" file by adding the option -S <.suffix> to gunzip like this:

gunzip -S .zip ri202-L010920.zip

Live Free or Die
Thierry Poels_1
Honored Contributor

Re: unzip in hp-ux

Hi,

Santosh is right (again;).

Whilst winzip is capable in reading gzip, compress, tar, ... It is not that easy in the other direction. Even renaming the extension to .gz will not work. Gzip handles single files, winzip can compress multiple files/directories in one archive. You'll require an extra utility to manipulate the winzip files, as mentioned by Santosh.

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
harry d brown jr
Honored Contributor

Re: unzip in hp-ux


If the file was "zipped" using zip, then gunzip will work to unzip it by using the -S .zip option on gunzip. I tried it and it works like a champ.
Live Free or Die
Santosh Nair_1
Honored Contributor

Re: unzip in hp-ux

Harry,

I just tried it and it does seem to work as long as the zip file only has one entry (btw, neat trick...never knew this). However, if there are multiple files in the archive, then gzip does not know how to handle it.

-Santosh
Life is what's happening while you're busy making other plans
Thierry Poels_1
Honored Contributor

Re: unzip in hp-ux

sjips :(
After Harry's post I tried everything again :
gunzip -S .zip file : worked OK!
mv file.zip file.gz; gunzip file : worked OK!

I tried renaming & gunzip this morning and it failed!! although the zip-file contained only one file (directorylist messed up after add and remove from archive??).

Conclusion: gunzip of winzip files works only in the afternoon, whoehahahaha ;-)))

regards,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Ravi_8
Honored Contributor

Re: unzip in hp-ux

Hi everybody

Thanx a lot for your help. pls find the URL from where we can download the unzip(.depot form) and install.

http://h21007.www2.hp.com/dspp/tech/tech_TechTypeListingPage_IDX/1,1704,10312,00.html

once again thanx a lot

ravi
never give up