Tuesday, August 30, 2011

Tar Directory Structure

16:37:31 <blkperl> hmm so how do you tell tar from 1998 to only tar the directory structure
16:38:29 <haus> port update tar?
16:38:42 <haus> or...yum update tar
16:38:43 <anakha> I don't think that's an option :)
16:41:22 <marut> mkdir tmp && cd tmp && ( cd .. && find . -type d ) | xargs mkdir -p && rmdir tmp && tar -cvf dirstructure.tar .


...rewind...


mkdir tmp && cd tmp && ( cd .. && find . -type d ) | xargs mkdir -p && rmdir tmp && tar -cvf dirstructure.tar .

...oh yeah.

No comments:

Post a Comment