Link to home
Start Free TrialLog in
Avatar of mj62mj62
mj62mj62

asked on

Cat files within a tar file to a pipe, without extract the files to disk first (UNIX)

Hello,

I'd like to 'cat' a specific file within a tar file without having to extract it to disk.

Then I'd like to run that output to a pipe, so that I can pipe to commands like cut to format the output.

My OS is Sun Solaris UNIX.

Thank You!! :)
SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

svs is correct.

The man page for GNUtar:

http://www.hmug.org/man/1/gnutar.php

Solaris 8 (sparc) download:

ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/tar-1.18-sol8-sparc-local.gz

If you have other versions of solaris, then please visit www.sunfreeware.com and look for your version of solaris then look for tar package.
Actually, he should use blastwave -- http://www.blastwave.org/, not sunfreeware.
Hi,

sunfreeware.com provides both compiled and source code of the package. Any particular reason for not downloading from this site?