Sunday, May 5, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9150  / 2 Years ago, sat, march 12, 2022, 12:42:27

Is there a way of doing this at the terminal? i.e. without writing a script, e.g.



mkdir subject{1,2,3,4}/book{1,2,3}


why doesnt the preceeding work with or without the -p option?


More From » command-line

 Answers
0

You can do it with following command:



mkdir -p Subject{1..4}/Book{1..3}

[#31624] Saturday, March 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bunsistent

Total Points: 198
Total Questions: 108
Total Answers: 121

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
;