for i in {1..9};do for j in $( seq 1 $i );do echo -n "$j * $i = $(($j*$i))";echo -n $'\t';done;echo;done
脚本方式:
#!/bin/bash
for i in {1..9}
do
for j in $( seq 1 $i )
do
echo -n "$j * $i = $(($j*$i))"
echo -n $'\t'
done
echo
done
for i in {1..9};do for j in $( seq 1 $i );do echo -n "$j * $i = $(($j*$i))";echo -n $'\t';done;echo;done
脚本方式:
#!/bin/bash
for i in {1..9}
do
for j in $( seq 1 $i )
do
echo -n "$j * $i = $(($j*$i))"
echo -n $'\t'
done
echo
done