Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash how to create directories in all subdirectories

# Example usage:
for dir in */; do mkdir -- "$dir"/{dir1,dir2,dir3}; done
# This creates directories dir1, dir2, and dir3 in all directories 
# found in the current directory.
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #create #directories #subdirectories
ADD COMMENT
Topic
Name
1+2 =