Re: Piping required files through tar

From: Adam Price (adam+usenet_at_pappnase.co.uk)
Date: 01/24/04


Date: Sat, 24 Jan 2004 06:21:16 -0000

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
>
> But how ??
>
> ( Yes i have RTM )
Some tars have a flag to strip a path from the output filenames (Eg on
tru64 it is -P PATH).
Another approach is to use pax to extract the archive, it has a flag
-s which allows you to replace one path component with another.
Hope this helps
Adam



Relevant Pages

  • Re: Piping required files through tar
    ... > 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 ...
    (comp.unix.admin)
  • Re: Piping required files through tar
    ... > 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 ...
    (comp.unix.admin)
  • Re: Piping required files through tar
    ... >> 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 ...
    (comp.unix.admin)
  • Piping required files through tar
    ... 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 ...
    (comp.unix.admin)
  • Re: The argument for fs assistance in handling archives
    ... |>Suppose I've got a tar file with an index attached. ... |>have to figure out exactly which ones I need before I extract them ... | This doesn't justify bloating the kernel. ... | Are you saying install it on demand the first time it's run? ...
    (Linux-Kernel)