|
From: | Paul Jarc |
Subject: | Re: Tar: something like patch's -p |
Date: | Mon, 29 Oct 2001 12:55:55 -0500 |
User-agent: | Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu) |
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. You could also do this: ln -s . autoconf-2.52e tar jxvf autoconf-2.52e.tar.bz2 rm autoconf-2.52e But this won't work if the tarball contains a file called "autoconf-2.52e/autoconf-2.52e". paul
[Prev in Thread] | Current Thread | [Next in Thread] |