Re: Tar

From: Alan Horn (ahorn_at_deorth.org)
Date: 01/19/04

  • Next message: Avi Aumick: "Re: help-kernel panic no init found"
    To: Fedora List <fedora-list@redhat.com>
    Date: Mon, 19 Jan 2004 13:28:54 -0800 (PST)
    
    

    >On Sat, 2004-01-17 at 10:28, Robert Nichols wrote:

    >>
    >> If you're building a list of things to include in a tar archive,
    >> never include a directory name unless you really want *everything*
    >> below that directory. There is no way to include just a directory
    >> name in a tar archive without having tar recurse into that directory.
    >>
    >> --
    >> Bob Nichols rnichols@interaccess.com
    >>
    >>

    Not strictly true, and probably depends on your version of tar to some
    extent.. however :

    slick: {6} tar --norecurse -cvf foo.tar foo
    foo/
    slick: {7} ls foo
    LICENSE.txt README.txt WebServer setup setup.inf

    Only added the directory, not the contents or subdirectories.

    Cheers,

    Al

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Avi Aumick: "Re: help-kernel panic no init found"

    Relevant Pages