Recently, in university, we started working with Linux and Bash. We have a task where we have to create 5 directories with the names Directory1
, Directory2
, and so on. In each directory we have to create 10 files with one random number inside.
I started like this, but I don't know what to do next:
#!/bin/bash
for i in {1..5}
do
mkdir "Directory${i}"
done
Can you please help me?