[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tar: something like patch's -p
From: |
Akim Demaille |
Subject: |
Re: Tar: something like patch's -p |
Date: |
30 Oct 2001 16:03:29 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) |
| Akim Demaille <address@hidden> wrote:
| > So I have to
| >
| > tar jxvf autoconf-2.52e.tar.bz2
| > cp -r autoconf-2.52e/* ~/src/ace
| > rm -rf autoconf-2.52e
| >
| > while I'd like to
| >
| > cd ~/src/ace
| > tar -p1 jxvf autoconf-2.52e.tar.bz2
|
| As long as you unpack it on the same filesystem where you want it to
| end up, you can use mv and rmdir instead of cp and rm.
And I precisely don't :) That's why I don't use mv.
| You could also
| do this:
| ln -s . autoconf-2.52e
| tar jxvf autoconf-2.52e.tar.bz2
| rm autoconf-2.52e
Still many steps, while I would simply want tar to expand at the
proper place :(
| But this won't work if the tarball contains a file called
| "autoconf-2.52e/autoconf-2.52e".