Re: Piping required files through tar
From: Adam Price (adam+usenet_at_pappnase.co.uk)
Date: 01/24/04
- Next message: x31: "Unix Login Problem URGENT"
- Previous message: Barry Margolin: "Re: shell repeat commands"
- In reply to: Ed: "Piping required files through tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: x31: "Unix Login Problem URGENT"
- Previous message: Barry Margolin: "Re: shell repeat commands"
- In reply to: Ed: "Piping required files through tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|