linux - How to create empty clone directories using bash script as subdirectories under another directory -


i need create empty clone directories same directory names subdirectories under directory in location, need accomplish using bash scripting.

to more specific, have number of directories being generated data logging system each directory being named according day, month, and, year of creation/recording, hence have starting directory 24012016 , on increments in day number, month, and, year; there gaps in records days due technical reasons.

each such directory contains files 2 different extensions; need script create directory same name, 24012016, subdirectory under directory in location, without files within it, and, copy files, 1 of 2 different extensions new clone directory, have process repeated directories, have process repeated directories.

given old_root base directory start coping , new_root base destination:

find <old_root> -type d -exec mkdir -p "<new_root>/{}" \; 

the second part unclear


Comments