标签:i+1 字母 shift break $# nbsp -- case read
---------------------
#!/bin/bash
for ((i=0;i<10;i++))
do
echo "$i"
done
------------------
#!/bin/bash
for ((i=0;i<10;i++))
do
if [ $i -eq 5 ];then
continue
else
echo "$i"
fi
done
-------------------
#!/bin/bash
for ((i=0;i<10;i++))
do
if [ $i -eq 5 ];then
break
fi
echo "$i"
done
read -p "please press one key:" key
case $key in
[a-z]|[A-Z])
echo "字母键";;
[0-9])
echo "数字键";;
*)
echo "其他键";;
esac
-----------------------------------
标签:i+1 字母 shift break $# nbsp -- case read
原文地址:http://www.cnblogs.com/zhj5551/p/7668190.html