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@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact
listmaster@xxxxxxxxxxxxxxxx




--
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.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: usb2 port gets very slow on 2-gig Flash Drive.
    ... You make all the filesystem changes to a disk image on your hard disk, ... It is July 24 and ps ax -Olstart shows me that tar has ... several minutes between the rm -r -f command to wipe the FAT ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • usb2 port gets very slow on 2-gig Flash Drive.
    ... I needed to reload the flash drive on a Zenstone 2-gig mp3 ... It is July 24 and ps ax -Olstart shows me that tar has ... several minutes between the rm -r -f command to wipe the FAT ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Question about bzip2 and bzip2recover and tar
    ... Then tar can get everything except the bad section and a little bit before and after the bad section... ... Question about bzip2 and bzip2recover and tar ... >with a subject of "unsubscribe". ... Trouble? ...
    (Debian-User)
  • Re: usb2 port gets very slow on 2-gig Flash Drive.
    ... It should be that CPU hungry I think. ... It is July 24 and ps ax -Olstart shows me that tar has ... several minutes between the rm -r -f command to wipe the FAT ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Question about bzip2 and bzip2recover and tar
    ... cat the results sequentially into a tar file or stream and then extract.... ... If this listing script works, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)