Uncompressing a Linux file on HP-UX


 
Thread Tools Search this Thread
Top Forums Programming Uncompressing a Linux file on HP-UX
# 1  
Old 10-08-2001
Uncompressing a Linux file on HP-UX

Hi!! All,
I have a compressed C file made on Linux. On Linux I used to uncompress it using the command:

zcat filename -xvf- |tar

I am not able to uncompress the same on Hp-UX-10.2. Could someone help me out how to do it ?? Do I have to use any other command to uncompress it??
# 2  
Old 10-08-2001
If you dont have zcat installed try:
uncompress filename ; tar xvf filename
# 3  
Old 10-09-2001
Thanx PxT. I think I was using the wrong syntax of commands. I am succesful in doing it now by using:

zcat filename |tar -xvf -

In
HPUX we require to give a space between "-xvf" and "- ". That was something I didnt required to do on Linux. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Create a text file and a pdf file from Linux command results.

Hello. The task : Using multiple commands like : gdisk -l $SOME_DISK >> $SOME_FILEI generate some text file. For readiness I must insert page break. When the program is finished I want to convert the final text file to a pdf file. When finished, I got two files : One text file and One pdf... (1 Reply)
Discussion started by: jcdole
1 Replies

2. Shell Programming and Scripting

Is the following script uncompressing .gz file into txt file

what does the below script doing, the first path with wild card clinical_event* has all .gz compressed files multiple and the final path has 1 single clinical_event.txt file almost 350GB in size. hadoop fs -text /user/hive/warehouse/stage.db/CLINICAL_EVENT/CLINICAL_EVENT* | hadoop fs -put... (4 Replies)
Discussion started by: cplusplus1
4 Replies

3. OS X (Apple)

Uncompressing but not extracting tar.Z file

Hi I have a few hundred files with extension .tar.Z. These files were archived (tar) and compressed (Z) on a UNIX system. I need to unzip them but not extract them. In other words they need to go to .tar extension. I would like to do this on my MAC or on a windows pc. I do not have a UNIX... (3 Replies)
Discussion started by: kalbano
3 Replies

4. Shell Programming and Scripting

Uncompressing .zip file specific directory Fedora 14

Hello, I have Fedora 14 installed on my machine I have a .zip file ( some latex package) which I want to unzip to some location in the Latex paths /usr/share.../texmf/.. so I went to super user mode, created the directory for this package over there, mkdir logo and tried... (1 Reply)
Discussion started by: ajayram
1 Replies

5. Shell Programming and Scripting

extract one file form .tar.gz without uncompressing .tar.gz file

hi all, kindly help me how to extract one file form .tar.gz without uncompressing .tar.gz file. thanks in advance bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

6. AIX

uncompressing file

Hi, how do u uncompress a .Z file? i have a file called software.all.Z and have to change it to software.all. how to do that? thanks! karthik (3 Replies)
Discussion started by: karthikosu
3 Replies

7. Solaris

uncompressing a .gz file

Hi Friends, i am trying to uncompress a file which is of the following type filename.tar.gz. when i am using gunzip filename.tar.gz to unzip it, i am getting the error as filename .tar.gz: invalid compressed data--format violated what is the mistake that i am doing ? any other way to... (2 Replies)
Discussion started by: sveera
2 Replies

8. UNIX for Dummies Questions & Answers

problem uncompressing tar.gz files

Whenever I try to uncompress file.tar.gz I always get message 'tar: directory checksum error'. I think because of this some of the directories might not be uncompressing properly. Why do I get this message? I do uncompress on UNIX Solaris 5.8. Oh, if I do the same thing on Fedora 3 everything works... (14 Replies)
Discussion started by: webtekie
14 Replies

9. UNIX for Dummies Questions & Answers

linux, copy a:\file to /tmp in linux?

hi, i am on linux 8. i wanted to copy a file from my a:\filename to my linux 8 /tmp directroy. how do i do this or any directions as in how to accompilsh. thanks (6 Replies)
Discussion started by: yls177
6 Replies
Login or Register to Ask a Question