现在的位置: 首页 > 综合 > 正文

shell Learning [while的初步用法]

2013年10月02日 ⁄ 综合 ⁄ 共 84字 ⁄ 字号 评论关闭
#!/bin/bash
echo "Enter password"
read i
while [ "$i" != "secret" ]; do
	echo "Sorry"
	read i
done
exit 0

抱歉!评论已关闭.