Re: Extract file from tar home/

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

 



On 07/06/10 19:24, Mike McCarty wrote:
> 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
>
    Yes, and this is essentially what I did except I tar'd the entire
    /home/bobg/ directory into one big lump. My question was could I go in
    and unzip individual files. It seems that can't be done easily. So I
    can unzip the whole thing and take what I need from the resulting
    files. I have sufficient storage space for that. I put the tar file on
    the NFS server where I can get to it as long as NFS works on a new
    install. If not I have another computer I can move files to and shift
    them around. I don't think I can "paint myself into a corner?" I
    usually do though!



    Bob


-- 

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