[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A silly question about tar



i think it's best to use the find command - something like that

find . -type f -name "*.tar.bz2" -exec tar xjf {} \;

ps: 
try this first to check u get the filelist u wanted:
find . -type f -name "*.tar.bz2"


Adam Porter wrote:
> 
> I've read the man page, googled this list and the rest of the Net, but I
> still can't figure out why this doesn't work:
> 
> $ tar xjf *.tar.bz2
> tar: beryl-core-0.2.0.tar.bz2: Not found in archive
> tar: beryl-manager-0.2.0.tar.bz2: Not found in archive
> tar: beryl-plugins-0.2.0.tar.bz2: Not found in archive
> tar: beryl-plugins-unsupported-0.2.0.tar.bz2: Not found in archive
> tar: beryl-settings-0.2.0.tar.bz2: Not found in archive
> tar: beryl-settings-bindings-0.2.0.tar.bz2: Not found in archive
> tar: beryl-settings-simple-0.2.0.tar.bz2: Not found in archive
> tar: emerald-0.2.0.tar.bz2: Not found in archive
> tar: emerald-themes-0.2.0.tar.bz2: Not found in archive
> tar: heliodor-0.2.0.tar.bz2: Not found in archive
> tar: Error exit delayed from previous errors
> 
> Not only did it completely fail, but it skipped the first file in the
> directory, aquamarine-0.2.0.tar.bz2.  But if I run the same command on a
> single file instead of a wildcard, it works fine.
> 
> Am I doing something wrong?  Why can't tar handle a wildcard list like
> that?
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/A-silly-question-about-tar-tf3418581.html#a9537723
Sent from the Debian User mailing list archive at Nabble.com.



Reply to: