howto extract all the tar.bz2 files in the same directory?

2007-03-23 Thread Zhengquan Zhang mailing list
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 [EMAIL PROTECTED] with a subject of unsubscribe. Trouble?

Re: howto extract all the tar.bz2 files in the same directory?

2007-03-23 Thread Martin Marcher
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

Re: howto extract all the tar.bz2 files in the same directory?

2007-03-23 Thread Zhengquan Zhang
Thank you. I will have a look of how to write scripts. On Fri, Mar 23, 2007 at 10:08:35AM +0100, Martin Marcher wrote: 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

Re: howto extract all the tar.bz2 files in the same directory?

2007-03-23 Thread Greg Folkert
On Fri, 2007-03-23 at 16:38 +0800, Zhengquan Zhang mailing list 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? First: apt-get

Re: howto extract all the tar.bz2 files in the same directory?

2007-03-23 Thread Douglas Allan Tutty
On Fri, Mar 23, 2007 at 04:38:29PM +0800, Zhengquan Zhang mailing list 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? There was a thread on