Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!bellcore!texbell!merch!cpe!hal6000!iv From: iv@hal6000.UUCP Newsgroups: comp.unix.xenix Subject: Re: Using tar with the 'r' option Message-ID: <-1087515@hal6000> Date: 13 Jun 89 16:40:00 GMT References: <1188@sbee.sunysb.edu> Lines: 23 Nf-ID: #R:sbee.sunysb.edu:1188:hal6000:-1087515:000:917 Nf-From: hal6000.UUCP!iv Jun 13 11:40:00 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@mccc.UUCP>, pjh@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@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