?
Solved

zcat

Posted on 2001-07-12
13
Medium Priority
?
498 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.
Suggested Courses

719 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