1.有m1.txt m2.txt m3.txt m4.txt,分别创建出对应的目录,m1 m2 m3 m4 并把文件移动到对应的目录下
2.99乘法表
#!/bin/bash
touch m1.txt m2.txt m3.txt m4.txt
for ((i = 1; i < 5; i++))
do
mkdir m$i
mv m$i.txt m$i
done
#!/bin/bash
for((A=1;A<=9;A++))
do
for((B=1;B<=$A;B++))
do
echo -n -e "$B*$A=$((A*B)) \t"
done
echo
done