~图形脚本加(双色球小脚本)*
Posted 猎手K
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了~图形脚本加(双色球小脚本)*相关的知识,希望对你有一定的参考价值。
#!/bin/bash
#99乘法口诀
for i in {1..9}
do
for j in {1..9}
do
if [ $j -le $i ]
then
echo -n " ${j}x${i}=$(($i*$j)) "
fi
done
echo
done
echo
echo
#99乘法口诀
for i in {1..9}
do
for j in {1..9}
do
if [ $j -le $i ]
then
echo -n " ${j}x${i}=$(($i*$j)) "
fi
done
echo
done
echo
echo
#三角形 变 M 形
for ((i=1;i<=9;i++))
do
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
for ((j=9;j>=$i;j--))
do
echo -n " "
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
#隔开
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
for ((j=9;j>$i;j--))
do
echo -n "*"
done
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
for ((i=1;i<=9;i++))
do
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
for ((j=9;j>=$i;j--))
do
echo -n " "
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
#隔开
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
for ((j=9;j>$i;j--))
do
echo -n "*"
done
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n " "
done
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
echo
done
echo
echo
echo
echo
#金字塔形
for ((i=1;i<=9;i++))
do
for ((j=9;j>=$i;j--))
for ((i=1;i<=9;i++))
do
for ((j=9;j>=$i;j--))
do
echo -n " "
done
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
for ((j=1;j<$i;j++))
do
echo -n "*"
done
echo
done
echo
echo
#长方形
for ((i=1;i<=9;i++))
do
for ((j=9;j>=$i;j--))
for ((i=1;i<=9;i++))
do
for ((j=9;j>=$i;j--))
do
echo -n "*"
done
for ((j=1;j<=$i;j++))
do
echo -n "*"
done
echo
done
echo
echo
#结束了
#双色球
echo "第19100期开奖结果 开奖日期:$(date +‘%F %T‘)"
touch /number
aa=0
#双色球
echo "第19100期开奖结果 开奖日期:$(date +‘%F %T‘)"
touch /number
aa=0
for ((i=1;${aa}<6;i++))
do
num=$(expr $RANDOM % 33 + 1)
cat /number | grep $num &> /dev/null
if [ $? -ne 0 ]
then echo "$num" >> /number
echo -en "\033[31m$num \033[0m"
let aa++
else continue
fi
done
do
num=$(expr $RANDOM % 33 + 1)
cat /number | grep $num &> /dev/null
if [ $? -ne 0 ]
then echo "$num" >> /number
echo -en "\033[31m$num \033[0m"
let aa++
else continue
fi
done
echo -en "\033[34m$(expr $RANDOM % 16 + 1)\033[0m"
echo
rm -rf /number
echo
rm -rf /number
#结束了
以上是关于~图形脚本加(双色球小脚本)*的主要内容,如果未能解决你的问题,请参考以下文章