➣ Reading Time: 2 minutes

權限請自行修改

#!/bin/bash

mkdir -p -m 777 /home/ubuntu/Desktop/log/

for j in 'python' 'cpp' 'bash'; do
        mkdir -p -m 777 /home/ubuntu/Desktop/j
        for i in 0 1 2 3 4 5 6 7; do
        mkdir -p -m 777 /home/ubuntu/Desktop/j/test/i
        done
done


for i in 0 1 2 3 4 5 6 7; do
    mkdir -p -m 777 /home/ubuntu/Desktop/test/i
done