![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need couple of ksh tricks please | JamesByars | Shell Programming and Scripting | 4 | 02-23-2008 03:07 PM |
| Set prompt, problems and tricks | HybridLogic | UNIX for Dummies Questions & Answers | 6 | 09-26-2007 09:05 PM |
| Developer Tricks: VideoLAN VLC Media Player - Redmond Developer News | iBot | UNIX and Linux RSS News | 0 | 06-17-2007 07:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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 |
|
||||
|
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
As for printing each file seperately, you can extract a specific file from a tar with Code:
tar -xf file.tar path/in/archive/to/file |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|