I am trying to figure out an elegant way to create a new subdirectory in a series of existing directories.
I have 15 already created directories called Week1 through Week15. Within those directories, I'd like to create a new directory called "Assignments." I'm thinking this might require a loop of some kind, but outside of that I'm a little lost.
I know I can "cd" into each directory and then "mkdir Assignment" and repeat this step for all 15 directories, but I know there must be an easier way.
Any help/advice will be greatly appreciated!
-poption specifies to make the parent dirs as necessary, so this will work even if you haven't created Week1 - Week15 yet. – Digital Chris Sep 18 '14 at 17:22mkdir -p Week{01..15}/Assignments– alfC Sep 19 '14 at 02:47