Re: tar problem
- From: Geoff Clare <geoff@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Jul 2007 13:57:19 +0100
enjoyfate wrote:
I have a tar file to extract .When I used " tar jxvf a.tar.bz2 "
command to extract , in current directory it makes mnt/c/....,
extarcted files all in that directory, but i do not want that
prefix ,so how to do that ?
bzcat a.tar.bz2 | pax -r -pp -s,mnt/c/,,
(pax is the standard POSIX utility for reading and writing tar and
cpio files).
If you are running as root and want to preserve ownership then use -pe
instead of -pp.
--
Geoff Clare <netnews@xxxxxxxxxxxxx>
.
- References:
- tar problem
- From: enjoyfate
- tar problem
- Prev by Date: Re: tar problem
- Next by Date: Re: Random list of filenames
- Previous by thread: Re: tar problem
- Next by thread: bash -n ignores shopt lines in script
- Index(es):
Relevant Pages
|