码迷,mamicode.com
首页 >  
搜索关键字:for循环、while循环、contin    ( 1个结果
for循环、while循环、continue、break、exit解析、select用法
20.10for循环eg:求1到100数字的和。[root@localhostsbin]#vimsum.sh#!/bin/bashsum=0foriinseq15dosum=$[sum+$i]doneecho"$sum"[root@localhostsbin]#shsum.sh15文件列表循环[root@localhostsbin]#vimfor.sh#!/bin/bashdi
分类:其他好文   时间:2018-04-20 10:21:23    阅读次数:147
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!