Re: Piping required files through tar
From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 01/22/04
- Next message: Stephen: "Re: How do I find out what is running at HH:MM after the fact"
- Previous message: Roberto Quiroga: "Re: Mystry of ntpdate"
- In reply to: Ed: "Piping required files through tar"
- Next in thread: Doug Freyburger: "Re: Piping required files through tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Jan 2004 15:17:24 GMT
In article <dc34c090.0401220647.d207f42@posting.google.com>,
jedbeer@hotmail.com (Ed) wrote:
> Possibly not the best explaination but here goes ....
>
>
> for example
>
> I have a tar file containing a dir called Jan04
>
> In that dir are sub dirs called Spools Bank and Logs
>
> I want to extract a file called 00012234.spl from Spool without
> extracting the whole dir structure
>
> I'm sure it can be done , in fact I've seen it done at my last job
GNU tar has a --to-stdout option, which writes the contents of the
file(s) being extracted to stdout rather than to the directory
structure. You can then redirect or pipe the output to wherever you
want.
-- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***
- Next message: Stephen: "Re: How do I find out what is running at HH:MM after the fact"
- Previous message: Roberto Quiroga: "Re: Mystry of ntpdate"
- In reply to: Ed: "Piping required files through tar"
- Next in thread: Doug Freyburger: "Re: Piping required files through tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|