Bash script to replicate a directory structure
I found a need for this once upon a time. It will descend through a Linux directory, get the permissions, ownership details for all the subdirs and then write a script for you to recreate it somewhere else. You use it like this. Script listing