← cd ~/blog

less ricreare-la-struttura-di-una-directory.md

Recreating the structure of a directory

#Crumbs archive

# historical archive — written years ago, kept as it was. Some info is dated.

To recreate the structure of a directory without copying the files inside it, you can use this:

for d in `find /path/to/yourdirectory -type d -printf "%P\n"`; do mkdir -pv $d ; done