#!/bin/bash
for i in {1..9}
do
for j in {1..9}
do
if [ $j -gt $i ]
then
break
fi
printf "%d*%d=%d\t" $i $j $((j*i))
done
echo ""
done
#!/bin/bash
i=1
while [ $i -le 4 ]
do
a=m$i.txt
`touch $a`
((i++))
done
j=1
for filename in `ls | grep ".txt$"`
do
b=m$j
`mkdir $b`
`mv $filename $b`
((j++))
if [ $j -gt 4 ]
then
break
fi
done