Operating System - HP-UX
1753786 Members
7467 Online
108799 Solutions
New Discussion юеВ

unzip a zip file without "unzip" command

 
shashi kanth
Super Advisor

unzip a zip file without "unzip" command

As HP-UX won't ship with unzip by default (but i can install unzip by downloading from some place and install manually), is there anyway that i can unzip a zip file with some other utility in HP-UX ?
15 REPLIES 15
Dennis Handly
Acclaimed Contributor

Re: unzip a zip file without "unzip" command

gunzip will handle only the first file in a .zip:
$ gunzip < 302602.zip > 302602.stuff
gunzip: stdin has more than one entry--rest ignored
Venkatesh BL
Honored Contributor

Re: unzip a zip file without "unzip" command

# gzip -d file.gz
Suraj K Sankari
Honored Contributor

Re: unzip a zip file without "unzip" command

Hi,

gzip -d filename also unzip a file

Suraj
shashi kanth
Super Advisor

Re: unzip a zip file without "unzip" command

# gzip -d hpux.parisc_11gR1_clusterware.zip
gzip: hpux.parisc_11gR1_clusterware.zip: unknown suffix -- ignored
Suraj K Sankari
Honored Contributor

Re: unzip a zip file without "unzip" command

Hi,

Please post the output of this command

#file hpux.parisc_11gR1_clusterware.zip

Suraj
Dennis Handly
Acclaimed Contributor

Re: unzip a zip file without "unzip" command

>unknown suffix -- ignored

Naturally. That's why I used: < 302602.zip > 302602.stuff
shashi kanth
Super Advisor

Re: unzip a zip file without "unzip" command

# file hpux.parisc_11gR1_clusterware.zip
hpux.parisc_11gR1_clusterware.zip: awk program text
Suraj K Sankari
Honored Contributor

Re: unzip a zip file without "unzip" command

Hi,

I think it is not a zip file, it is a normal text file with .zip extension did u try with

head filename
or
vi filename

Suraj
Steven Schweda
Honored Contributor

Re: unzip a zip file without "unzip" command

> [...] i can install unzip by downloading
> from some place and install manually [...]

So why don't you do that? How hard do you
wish to make what should be an easy job?

> file hpux.parisc_11gR1_clusterware.zip
> hpux.parisc_11gR1_clusterware.zip: awk program text

> I think it is not a zip file, it is a
> normal text file with .zip extension did u
> try with

And I think that you should learn to spell
"you" correctly, and then run a simple
experiment before making foolish claims.

dy # uname -a
HP-UX dy B.11.11 U 9000/785 2012616114 unlimited-user license

dy # file unzip552.zip
unzip552.zip: awk program text

Which shows only that "file" doesn't know
everything.

Info-ZIP UnZip binary kits for almost any OS
are abundant, and you should be able to build
it from the sources, even using the (lame) HP
bundled C compiler. Why waste time fiddling
around with all this other nonsense?