Tuesday, May 14, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9152  / 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
bunsistent questions
Thu, Aug 5, 21, 12:26, 3 Years ago
Fri, Jul 16, 21, 00:04, 3 Years ago
Wed, Jul 7, 21, 11:58, 3 Years ago
Tue, May 25, 21, 04:26, 3 Years ago
Fri, May 12, 23, 19:42, 1 Year ago
;