News

New paper!

Friday, December 7, 2018

Copy only directory structure without copying files inside

Command to copy only directory structure from one to another without copying all the files in the directories:

First, do this in a directory where all the structure you want to copy exist.

find . -type d > dirs.txt

and inside a directory where you want to create the same structure,

xargs mkdir -p < dirs.txt