5
rated 0 times
[
5]
[
0]
/ answers: 1 / hits: 829
/ 1 Year ago, thu, april 6, 2023, 10:01:46
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?
More From » command-line