Re: howto extract all the tar.bz2 files in the same directory?
- From: "Martin Marcher" <martin.marcher@xxxxxxxxx>
- Date: Fri, 23 Mar 2007 10:08:35 +0100
for i in $(ls *.tar.bz2);do mkdir `echo $i|sed -e 's/.tar.bz2//'; tar
-C `echo $i|sed -e's/.tar.bz2//'` xjf $i ;done
something like that (I'm sure there are ways a lot easier but that's
what I usually do)
* will create a directory named like the tar.bz2 (in case it extracts
to ./ and not to some subdir)
* extract ever foo.tar.bz2 to ./foo/
haven't checked exactly but in general that should do id..
On 3/23/07, Zhengquan Zhang mailing list
<zhang.zhengquan.mailinglist@xxxxxxxxx> wrote:
I want to extract lots of tar.bz2 files in one directory, and I want the
extracted files to be of the original names with out the tar.bz2 extension.
Is there a way to extract them all at once?
Thank you.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
--
Martin Marcher
martin.marcher@xxxxxxxxx
http://www.mycorners.com
http://www.xing.com/go/invite/7047758.a39b9b
http://www.linkedin.com/in/martinmarcher
http://www.studivz.net/profile.php?ids=9f83ea8c5996b8ec
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: howto extract all the tar.bz2 files in the same directory?
- From: Zhengquan Zhang
- Re: howto extract all the tar.bz2 files in the same directory?
- References:
- howto extract all the tar.bz2 files in the same directory?
- From: Zhengquan Zhang mailing list
- howto extract all the tar.bz2 files in the same directory?
- Prev by Date: Re: Debian for Desktop [Was: Re: "I do consider Ubuntu to be Debian" , Ian Murdock]
- Next by Date: Re: How to run fetchmail as daemon at startup
- Previous by thread: howto extract all the tar.bz2 files in the same directory?
- Next by thread: Re: howto extract all the tar.bz2 files in the same directory?
- Index(es):
Relevant Pages
|
|