I have a problem, I have a catalog /home/robert
in which there are subdirectories: Dog
, Cat
, Bird
, Horse
I want to create a Test
and Test1
(automatically) in each of these directories to get:
/home/robert/Dog/Test
/home/robert/Dog/Test1
/home/robert/Cat/Test
/home/robert/Cat/Test1
/home/robert/Bird/Test
/home/robert/Bird/Test1
/home/robert/Horse/Test
/home/robert/Horse/Test1
Is this possible to do, for example, one command with regular expressions, or even better in a text file, I enter:
Test
Test1
And somehow I take the name "Test" and "Test1" and I'm going to the command that will create such a structure of catalogs?
I tried:
mkdir /home/robert/*/Test
mkdir /home/robert/{*}/Test
mkdir /home/robert/[*]/Test
Unfortunately, this does not work