标签:循环 for sum 字符 命令 shell echo ++ done
sum=0
for((i=1;i<=10;i++))
do
sum=$(($sum+$i))
echo "$i:$sum"
done
for i in `ls ./`
do
echo "$i"
done
for i in ./*
do
echo "$i"
done
标签:循环 for sum 字符 命令 shell echo ++ done
原文地址:https://www.cnblogs.com/smallredness/p/11057302.html