LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-08-2006, 03:13 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Question tar errors


Why am I getting these errors? I would like to use one command to make this easier instead of doing one for each movie because I will be getting more. Do I need a for loop or a while loop to do this?

ubuntu@ubuntu:~/Desktop/a/movies$ ls
DSCN0082.MOV DSCN0084.MOV.tar DSCN0088.MOV.tar DSCN0093.MOV.tar DSCN0102.MOV.tar
DSCN0082.MOV.tar DSCN0085.MOV.tar DSCN0092.MOV.tar DSCN0102.MOV DSCN0107.MOV.tar
ubuntu@ubuntu:~/Desktop/a/movies$ tar -xvf *tar
tar: DSCN0084.MOV.tar: Not found in archive
tar: DSCN0085.MOV.tar: Not found in archive
tar: DSCN0088.MOV.tar: Not found in archive
tar: DSCN0092.MOV.tar: Not found in archive
tar: DSCN0093.MOV.tar: Not found in archive
tar: DSCN0102.MOV.tar: Not found in archive
tar: DSCN0107.MOV.tar: Not found in archive
tar: Error exit delayed from previous errors
ubuntu@ubuntu:~/Desktop/a/movies$ tar -tvf *tar
tar: DSCN0084.MOV.tar: Not found in archive
tar: DSCN0085.MOV.tar: Not found in archive
tar: DSCN0088.MOV.tar: Not found in archive
tar: DSCN0092.MOV.tar: Not found in archive
tar: DSCN0093.MOV.tar: Not found in archive
tar: DSCN0102.MOV.tar: Not found in archive
tar: DSCN0107.MOV.tar: Not found in archive
tar: Error exit delayed from previous errors
ubuntu@ubuntu:~/Desktop/a/movies$ tar -tvf DSCN0082.MOV.tar
-rwx------ veronica/veronica 4593630 2006-08-04 11:48:26 DSCN0082.MOV
ubuntu@ubuntu:~/Desktop/a/movies$ tar -xvf DSCN0084.MOV.tar
DSCN0084.MOV
ubuntu@ubuntu:~/Desktop/a/movies$
 
Old 08-08-2006, 03:37 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can't extract multiple tar or tar gzipped files using wildcards (well maybe there is a way). Do something like
Code:
$for i in `ls`; do tar xvf "$i"; done
 
Old 08-08-2006, 03:55 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Try
Code:
tar -xf <filename>.tar
 
Old 08-08-2006, 06:11 PM   #4
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Thanks for the for loop bash code. That worked great, and I learned a little bit. XavierP, read my first post again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar: Error exit delayed from previous errors menator Linux - Newbie 13 12-19-2013 06:43 PM
errors while installing ndiswrapper-0.8.tar.gz and ndiswrapper-0.11.tar.gz itsonlyme Linux - Wireless Networking 31 05-19-2006 02:51 PM
I get errors when trying to run tar to extract gschrade Linux - Newbie 9 11-10-2003 11:32 AM
tar: Error exit delayed from previous errors madenan Linux - Software 0 08-06-2003 02:38 PM
tar: Error exit delayed from previous errors x2000koh Programming 3 05-09-2003 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration