Re: Extract file from tar home/

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

 



Bob Goodwin wrote:

Here's how it's supposed to work...


[jmccarty@Presario-1 KT-135]$ mkdir check-tar
[jmccarty@Presario-1 KT-135]$ cd check-tar
[jmccarty@Presario-1 check-tar]$ cp -p ../MVC* .
[jmccarty@Presario-1 check-tar]$ ls
MVC-001S.JPG  MVC-008S.JPG  MVC-012S.JPG  MVC-017S.JPG  MVC-021S.JPG
MVC-002S.JPG  MVC-009S.JPG  MVC-013S.JPG  MVC-018S.JPG
MVC-006S.JPG  MVC-010S.JPG  MVC-014S.JPG  MVC-019S.JPG
MVC-007S.JPG  MVC-011S.JPG  MVC-015S.JPG  MVC-020S.JPG
[jmccarty@Presario-1 check-tar]$ ls -l
total 680
-rw-rw-r--  1 jmccarty jmccarty 31974 Feb  6  2006 MVC-001S.JPG
-rw-rw-r--  1 jmccarty jmccarty 35957 Feb  6  2006 MVC-002S.JPG
-rw-rw-r--  1 jmccarty jmccarty 41188 Feb  6  2006 MVC-006S.JPG
-rw-rw-r--  1 jmccarty jmccarty 38881 Feb  6  2006 MVC-007S.JPG
-rw-rw-r--  1 jmccarty jmccarty 34387 Feb  6  2006 MVC-008S.JPG
-rw-rw-r--  1 jmccarty jmccarty 39823 Feb  6  2006 MVC-009S.JPG
-rw-rw-r--  1 jmccarty jmccarty 27970 Feb  6  2006 MVC-010S.JPG
-rw-rw-r--  1 jmccarty jmccarty 23362 Feb  6  2006 MVC-011S.JPG
-rw-rw-r--  1 jmccarty jmccarty 28437 Feb  6  2006 MVC-012S.JPG
-rw-rw-r--  1 jmccarty jmccarty 24928 Feb  6  2006 MVC-013S.JPG
-rw-rw-r--  1 jmccarty jmccarty 28323 Feb  6  2006 MVC-014S.JPG
-rw-rw-r--  1 jmccarty jmccarty 49698 Feb  6  2006 MVC-015S.JPG
-rw-rw-r--  1 jmccarty jmccarty 44635 Feb  6  2006 MVC-017S.JPG
-rw-rw-r--  1 jmccarty jmccarty 50255 Feb  6  2006 MVC-018S.JPG
-rw-rw-r--  1 jmccarty jmccarty 49337 Feb  6  2006 MVC-019S.JPG
-rw-rw-r--  1 jmccarty jmccarty 46651 Feb  6  2006 MVC-020S.JPG
-rw-rw-r--  1 jmccarty jmccarty 49368 Feb  6  2006 MVC-021S.JPG
[jmccarty@Presario-1 check-tar]$ tar czf images.tar.gz *
[jmccarty@Presario-1 check-tar]$ tar tzf images.tar.gz
MVC-001S.JPG
MVC-002S.JPG
MVC-006S.JPG
MVC-007S.JPG
MVC-008S.JPG
MVC-009S.JPG
MVC-010S.JPG
MVC-011S.JPG
MVC-012S.JPG
MVC-013S.JPG
MVC-014S.JPG
MVC-015S.JPG
MVC-017S.JPG
MVC-018S.JPG
MVC-019S.JPG
MVC-020S.JPG
MVC-021S.JPG
[jmccarty@Presario-1 check-tar]$ mkdir untar
[jmccarty@Presario-1 check-tar]$ cd untar
[jmccarty@Presario-1 untar]$ ls
[jmccarty@Presario-1 untar]$ tar xzf ../images.tar.gz MVC-006S.JPG
[jmccarty@Presario-1 untar]$ ls
MVC-006S.JPG
[jmccarty@Presario-1 untar]$ ls -l
total 44
-rw-rw-r--  1 jmccarty jmccarty 41188 Feb  6  2006 MVC-006S.JPG

One does have to use a name which matches, including any path
information which may be stored.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I speak only for myself, and I am unanimous in that!
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux