Answer the question
In order to leave comments, you need to log in
How to create identical files in directories and subdirectories with a script?
#!/bin/bash
mkdir -p 201{0..7}/{01..12}
for a in *
do
for b in *
do
touch file_1
echo 'file 1' > file_1
touch file_2
echo 'file 2' > file_2
done
done
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question