UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old February 24th, 2005, 09:42 AM
EverLearning EverLearning is offline
the ^ user
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: f(x)
Posts: 358 EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 46 m 31 sec
Reputation Power: 7
unizp command

I have a file (nas-1.4.src.tar.gz) to unzip on Unix and instructions say to do this:
You should have recieved the following file:
(where x.y is the current revision)
nas-x.y.src.tar.gz - gziped tar archive of the source distribution.
Unzip/untar this use 'gzcat nas-x.y.src.tar.gz |tar -xvf -'.

And I have not unzipped anything on unix before, so I get usage warnings when I execute: gzcat nas-1.4.src.tar.gz |tar -xvf -

P.S. I know this belongs to UNIX forum.

Last edited by EverLearning : February 24th, 2005 at 01:42 PM.

Reply With Quote
  #2  
Old February 24th, 2005, 09:47 AM
ishnid's Avatar
ishnid ishnid is offline
kill 9, $$;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Sep 2001
Location: Dublin, Eire
Posts: 5,509 ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level)ishnid User rank is General 5th Grade (Above 100000 Reputation Level) 
Time spent in forums: 3 Months 1 Week 2 Days 17 h 38 m 24 sec
Reputation Power: 1322
tar -xvzf nas-1.4.src.tar.gz

Reply With Quote
  #3  
Old February 24th, 2005, 09:52 AM
EverLearning EverLearning is offline
the ^ user
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: f(x)
Posts: 358 EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 46 m 31 sec
Reputation Power: 7
Then why is there a "|" in the original instructions? And what is all that there in original command anyway?
Thanks for the suggestion.
here is what I get now:
% tar -xvzf nas-1.4.src.tar.gz
tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqvw[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...

Last edited by EverLearning : February 24th, 2005 at 10:00 AM.

Reply With Quote
  #4  
Old February 24th, 2005, 10:08 AM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,440 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 50 m 56 sec
Reputation Power: 797
Quote:
Originally Posted by EverLearning
P.S. I know this belongs to UNIX forum but I never get answers from them.

Ummm... you posted 2 questions in the Unix forum, one of which was answered. The other question was really obscure and no one knew what the answer was (IIRC, no one answered you correctly when you posted the same question in the lounge later). Instead of polluting the lounge, you should keep posting your UNIX questions in the *nix forum.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #5  
Old February 24th, 2005, 10:19 AM
EverLearning EverLearning is offline
the ^ user
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: f(x)
Posts: 358 EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 46 m 31 sec
Reputation Power: 7
To Scorpions4ever: Somehow actually lounge-people actually helped me figure out my last Unix question, so I found it more helpful, but you are right.
Forget it, I will get myself out of here.
<edit>
if I knew how to move my thread
</edit>

Last edited by EverLearning : February 24th, 2005 at 10:41 AM.

Reply With Quote
  #6  
Old February 24th, 2005, 01:08 PM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,673 computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 4 Weeks 9 h 2 m 19 sec
Reputation Power: 219
Send a message via ICQ to computer
Thread moved.

The idea of specific forums is to post questions in them. Don't just ignore them becaues the lounge gives you better response times.
__________________

Reply With Quote
  #7  
Old February 27th, 2005, 07:25 PM
mortisRider mortisRider is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 21 mortisRider User rank is Private First Class (20 - 50 Reputation Level)mortisRider User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 25 m 51 sec
Reputation Power: 0
To start w/ the first part of your question, the | is a pipe and what they are telling you to do is run the unzip program on your box, take the result for the unzip and "pipe" it to the tar command. Just one way of running two commands in order from one command prompt.

As for adding the z command to the tar funciton, this will work on some systems, mostly linux systems out of the box, but will also work on a unix system if your environment supports it. Seems like yours is not configured for it. So, to get the job done, try one of the following:

First, check to ensure the file is really a gzip file by executing:

file *

This will return the type of file and if it is of type gzip you can continue w/:

gunzip filename.tar.gz

then:

tar -xvf filename.tar

or, if you want to get fancy, you can do it all in one shot by:

gunzip filename.tar.gz;tar -xvf filename.tar

Hope this helps to clear things up.

Reply With Quote
  #8  
Old February 28th, 2005, 08:30 AM
EverLearning EverLearning is offline
the ^ user
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: f(x)
Posts: 358 EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level)EverLearning User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 3 Days 46 m 31 sec
Reputation Power: 7
Thank you for the detailed explanation. At least now I understand.
Apologize for my prejudice to this forum...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > unizp command


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway