Using tar with the 'r' option

iv at hal6000.UUCP iv at hal6000.UUCP
Wed Jun 14 02:40:00 AEST 1989


/* Written  6:25 pm  Jun 11, 1989 by sbee.UUCP!mhlevy in comp.unix.xenix */
|* ---------- "Re: Using tar with the 'r' option" ---------- */
| In article <771 at mccc.UUCP>, pjh at mccc.UUCP (Pete Holsberg) writes:
| > Is there anyway to get tar to extract a file from an archive file and send
| > it to stdout (rather than to a file)?
| > -- 
| > Pete Holsberg, Professor, Technology Division
| 
| 
| Try:
|      tar xvf -   ( the '-' means stdout or stdin )
| 
| Mark
\* End of text from hal6000:comp.unix.xenix */

No, no, no.  "tar xf -" means to read the ARCHIVE from stdin, not to
write the file to stdout.  The `f' key in all cases means the ARCHIVE file.
----
IV  (aka John Elliott IV)	 Domain: iv at hal6000.Tandy.COM
Tandy Systems Software		   UUCP: ...!texbell!letni!hal6000!iv
900 Two Tandy Center		     or: ...!decvax!microsoft!trsvax!hal6000!iv
Fort Worth, TX 76102		  Phone: 817/390-2701; 9:30am-6:00pm CST, M-F



More information about the Comp.unix.xenix mailing list