C高级Day4

 1•

#!/bin/bash
 
 for i in {1..4}
 do
     touch m$i.txt
     mkdir m$i
     mv m$i.txt m$i
 done                     
                          

  2•    9x9乘法表

#!/bin/bashi
 
for i in {1..9}
do
    for j in {1..9}
    do
        if [ $i -lt $j ]
        then
            break
        fi
        echo -n "$j * $i=$((i*j))"
    done
    echo ""
done
 
      

猜你喜欢

转载自blog.csdn.net/m0_53451387/article/details/130650869