I want to create an empty directory structure bar2from a non-empty directory tree bar1. Both bar1and bar2are at the same level of hierarchy. How can I use mkdirit effectively so that staging directories are automatically created?
- To create a directory list from bar1 using find, order it if necessary.
- Using
awk, remove all branches from the list so that I can run `mkdir only on sheets. - Run
mkdirwith a list to replicate the directory structure bar1
source
share