Kieren Searle
UKDragon.com - KBlog
Untar with wild cards
19/06/08
Untar with wild cards
tar doesn’t seem to like using wild cards. If you are trying to decompress multiple files in one go you might try a command like:
kieren@home:~/archives> tar -xf *.tar
However, this produces multiple errors, one for each file that the wild card matches:
tar: archive1.tar: Not found in archive
tar: archive2.tar: Not found in archive
tar: archive3.tar: Not found in archive
tar: archive4.tar: Not found in archive
tar: archive5.tar: Not found in archive
A quick solution is to use a loop to decompress them one at a time like so:
for archive in *.tar ; do tar -xf archive ; done
Trackback address for this post:
Comments, Trackbacks, Pingbacks:
No Comments/Trackbacks/Pingbacks for this post yet...
Leave a comment:
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
Search
Categories
KBlog
Archives
- July 2008 (1)
- June 2008 (2)
- May 2008 (5)
- April 2008 (6)
- March 2008 (6)
- February 2008 (6)
- January 2008 (5)
- More...
