Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!sumax!ole!steven!fawcett From: fawcett@steven.COM (fawcett) Newsgroups: comp.unix.questions Subject: Re: tar from a disk (not tape) Summary: Use the -f flag Keywords: tar Message-ID: <26@steven.COM> Date: 15 May 89 19:33:57 GMT References: <1517@cmx.npac.syr.edu> Organization: Sierra Geophysics Inc., Kirkland, Wa. Lines: 36 In article <1517@cmx.npac.syr.edu>, gefuchs@goedel.uucp (Gill E. Fuchs) writes: > i have in my directory a file named gugu.tar which i assume is > a tarfile. > > now, what i would like to do is restore it unto my directory > > in my feeble attemp to do so i tried: > tar x gugu.tar > to which i was wipped with the response: > "yo, no tape on line" {translated a bit} > You can do what you want simply by replacing the name of the tape drive with the name of the file you want. I.E. tar xvf gugu.tar will read gugu.tar and create (in the local directory) the files contained in gugu.tar. If you want to put the output somewhere else, either cd to the new directory and add the full pathname of the input file, or use the more complex redirection scheme. I.E.: tar xvf - < gugu.tar Either one should do the job for you. John W. Fawcett ----- ----- ----- ----- ----- ------ Software Engineer / / / / / / / / / Sierra Geophysics, Inc . ----- / /--- /----- /----- /-----/ P.O. Box 3886 / / / / \ / \ / / Seattle, Wa. 98124 ----- ----- ----- / \ / \ / / Voice: (206) 822-5200 uucp: ..!uw-beaver!sumax!quick!ole!steven!fawcett