[LUNI] Question about TAR...
captinsano443 at yahoo.com
Sat Nov 2 15:10:02 CST 2002
--- gs-list <gs-list at glsrms.com> wrote:
> While traversing the irc.openprojects.net IRC server, I came across
> interesting question of another user, and after spending a good
> minutes on trying to figure it out, I can't seem to. Hopefully
> here has an answer that does NOT include the RM and MV commands:
> Here's how the original question was posed:
> lets say in snafu.tar i have /mnt/foo/blah, i want to extract
> /mnt/foo/blah/* to /blah, cwd is /blah how do i do that?
> The way that I interpret this, explained in more detail:
> snafu.tar contains files which were in the directory path
> and the filenames are:
> and I want to extract bar1 thru bar5 into /blah instead of making it
> out as /blah/mnt/foo/blah/*
> Make sense? Need more clarification? HELP!
You can't do that with tar. Absolute paths are
absolute paths. Take a look into pax.
pax -r -s ,/mnt/foo/blah,/blah, -f snafu.tar
or something like that. Read the man page and play
Do you Yahoo!?
HotJobs - Search new jobs daily now
More information about the luni