Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

zcat

Posted on 2001-07-12
13
Medium Priority
?
502 Views
Last Modified: 2012-05-04
I am trying to unzip the following file

gcc-bin.tar.gz

I have only zcat or uncompress to work with at the moment and not gunzip.

can i do this and if so what is my command instrsuction.

I tried the simple command:

zcat gcc-bin.tar.gz

This command failed.  The error reported is as follows:

No such file: gcc-bin.tar.gz.Z

what are my options?

regards
Peter

0
Comment
Question by:Peewee
  • 4
  • 4
  • 2
  • +3
13 Comments
 
LVL 3

Expert Comment

by:interiot
ID: 6278219
If you have gzip, you can do

  gzip -d gcc-bin.tar.gz
0
 
LVL 5

Author Comment

by:Peewee
ID: 6278602
interiot,
i donot hsve gzip installed..

any offers..
0
 
LVL 11

Expert Comment

by:griessh
ID: 6278617
zcat is fine.

zcat gcc-bin.tar.gz > gcc-bin.tar
tar xvf gcc-bin.tar

zcat -s a gunzip -c, that means it will send to stdout (I guess your approach kill your teminal?)

======
Werner
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 5

Expert Comment

by:marecs
ID: 6279797
It won't work. You need gunzip. zcat is probably a symlink to compress which uses a slightly different compression format than gzip. That is why it looks for a .Z extension. gunzip can unzip .Z files, but not vice versa.
0
 
LVL 11

Expert Comment

by:griessh
ID: 6280390
Peewee said he has zcat, zcat is a binary and zcat works for *.gz compression!

======
Werner
0
 
LVL 5

Author Comment

by:Peewee
ID: 6280498
chaps,
i tried the zcat commands and they don't work.  I think Marecs is right.

I've tried to install gunzip but it wont install, will post the errors here later..

regards
peewee
0
 
LVL 11

Expert Comment

by:griessh
ID: 6280522
Peewee

What OS are you running on? I am on AIX and I am using zcat all the time, so just wondering what could go wrong. What does zcat complain about?

======
Werner
0
 
LVL 5

Author Comment

by:Peewee
ID: 6280562
I,m runing solaris Sun OS 5.6 which i think equates to solaris 2.6.

the error mesage i get is:

No such file: gcc-bin.tar.gz.Z

it basically appends the .Z to the file name and hence cant find it.

regards
Peter
0
 
LVL 11

Accepted Solution

by:
griessh earned 60 total points
ID: 6280864
Since you said you had problems installing gunzip, do you have access to a Windows PC? You should be able to unzip you file to create a tar file and then transfer it back to your SUN and untar it. (Sounds terrible, doesn't it, but it works ...)

======
Werner
0
 
LVL 3

Expert Comment

by:mrn060900
ID: 6288791
try renaming the file with a .Z at the end

Regards Mike
0
 

Expert Comment

by:jahvane
ID: 6295345
I would go to frresunware.com and download the latest version of gzip, it's best to go ahead and install it, you'll need it.

CA
0
 

Expert Comment

by:jahvane
ID: 6295350
oops...its sunfreeware.com if u are using solaris plattform
0
 
LVL 5

Author Comment

by:Peewee
ID: 6299034
yept thats my only option or get a newer copy of solaris.

many thanks
peewee
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question