Create a subfolder in several folders
Hey guys,
I have a situation where I need to create a subfolder called "subfolder" under several folders with different names. I tried mkdir *\subfolder, it errors out on the ones that already have "subfolder" but does not really create the subfolder for the ones that don't have it. Any help is appreciated. gen. |
One way is to put list of dirs in a file eg dir.lst, then:
Code:
for dir in `cat dir.lst` |
Another way if the list isn't too huge:
Code:
# notice i skipped dir3 & dir6 - you said it existed in some |
There's a lot of folders, so how do I create a list of folders? Are they supposed to be one per line or delimited....?
|
All times are GMT -5. The time now is 07:27 AM. |