![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need couple of ksh tricks please | JamesByars | Shell Programming and Scripting | 4 | 02-23-2008 11:07 AM |
| Set prompt, problems and tricks | HybridLogic | UNIX for Dummies Questions & Answers | 6 | 09-26-2007 05:05 PM |
| Developer Tricks: VideoLAN VLC Media Player - Redmond Developer News | iBot | UNIX and Linux RSS News | 0 | 06-17-2007 03:54 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
tar tricks
Hello there,
Is there anyway to make the tar utility print the contents of the files inside it (not list the files, but rather their contents) sequentially from the command line? What I ultimately would like to do is to have a way of printing the contents of each file in the tar archive separately to the standard input of another program through a pipe: i.e. tar -something test.tar | file_reader |
| Forum Sponsor | ||
|
|
|
|||
|
use the man pages, man.
Code:
# man tar
TAR(1) tar TAR(1)
NAME
tar - The GNU version of the tar archiving utility
SYNOPSIS
tar <operation> [options]
<snip>
-O, --to-stdout
extract files to standard output
Code:
tar -xf file.tar path/in/archive/to/file |