标签:shell命令
#!/bin/bash
read -p "Input line number: " line
for ((i=0; i<$line; i++))
do
for ((k=$i; k>0; k--))
do
echo -n " "
done
for ((h=$((2*($line-$i)-1)); h>0; h--))
do
echo -n -e"\033[1;4;5;41;37m*\033m"
done
echo
done
标签:shell命令
原文地址:http://11897100.blog.51cto.com/11887100/1829628