khwang@cse.uta.edu (khwang) (05/22/91)
Hello, Does anyone out there how I can teansfer a tar.Z file to ASCII readble file ? I tried uncompress, for example, a.tar.Z then I got an a.tar then what next ? Your reply will be greatly appreciated ! KC .
s902113@minyos.xx.rmit.oz.au (Luke Mewburn) (05/22/91)
khwang@cse.uta.edu (khwang) writes: >Hello, >Does anyone out there how I can teansfer a tar.Z file to ASCII readble >file ? I tried uncompress, for example, a.tar.Z then I got an a.tar then >what next ? Your reply will be greatly appreciated ! >KC >. Well, if you want to get an ascii file out of a tar file (eg. a.tar in your example), type: tar -xvof a.tar This will untar the lot. '-xvo' says untar the file, and '-o' makes you the owner. I am pretty sure that if you edited the file (ie, a.tar) with vi, you could rip the text out yourself, but that is fiddly. -- ____________________________________________________________________________ | | | | Luke Mewburn (Zak) | This side for lease... | | s902113@minyos.xx.rmit.oz.au | (No disclaimer, can't afford it:-) |
gwyn@smoke.brl.mil (Doug Gwyn) (05/22/91)
In article <1991May22.005816.1351@cse.uta.edu> khwang@cse.uta.edu (khwang) writes: >Does anyone out there how I can teansfer a tar.Z file to ASCII readble >file ? I tried uncompress, for example, a.tar.Z then I got an a.tar then >what next ? Your reply will be greatly appreciated ! The file names were chosen to indicate the format. The .Z suffix conventionally indicates application of BSD "compress", and as you discovered it is understood by "uncompress". The .tar suffix undoubtedly means that the file is a "tar" archive. Look up "tar" in Section 1 of your UNIX user manual.
jc@raven.bu.edu (James Cameron) (05/22/91)
>>>>> On 22 May 91 00:58:16 GMT, khwang@cse.uta.edu (khwang) said: ||> Hello, ||> Does anyone out there how I can teansfer a tar.Z file to ASCII readble ||> file ? I tried uncompress, for example, a.tar.Z then I got an a.tar then ||> what next ? Your reply will be greatly appreciated ! ||> KC ||> . It is in 'tar' form. You need to "untar" it to see what it contains. To do this, simply type: % tar xvf a.tar In the future, it might help when you seem something really funky to try this: % apropos funky.thing If your system is set up with it of course. *8-) If not, ask your System Administrator to set it up. jc -- -- James Cameron (jc@raven.bu.edu) Signal Processing and Interpretation Lab. Boston, Mass (617) 353-2879 ------------------------------------------------------------------------------ "But to risk we must, for the greatest hazard in life is to risk nothing. For the man or woman who risks nothing, has nothing, does nothing, is nothing." (Quote from the eulogy for the late Christa McAuliffe.)
yount@fox.ece.cmu.edu (Charles Robert Yount) (05/22/91)
In article <1991May22.005816.1351@cse.uta.edu> khwang@cse.uta.edu (khwang) writes:
Does anyone out there how I can teansfer a tar.Z file to ASCII readble
file ? I tried uncompress, for example, a.tar.Z then I got an a.tar then
what next ? Your reply will be greatly appreciated !
If you're short on disk space, you can go directly from a tar.Z file
to "ASCII readable." Try the following:
zcat a.tar.Z | tar xvf -
--Chuck