tar up directories only
To create a tar file containing only a dir structure in GNU/Linux, this seems to work nicely:
tar -cvf filename.tar --after-date YYMMDD *
Where YYMMDD is a date newer than all files in the dir(s) being tarred up. Picking a date in the future should do the job. Tar will include all the directories and none [...]
by Scott Carpenter on 28 January 2009 at 7:55 pm
permalink |
comments (2) | filed under free software
tagged: command line, gnu-linux, shell, tips

Richard Stallman: