码迷,mamicode.com
首页 > 其他好文 > 详细

[Bash Scripting LOOP]for, while. until

时间:2020-05-25 00:19:28      阅读:49      评论:0      收藏:0      [点我收藏+]

标签:col   scripting   The   script   loop   while   bin   rip   span   

 

#!/bin/bash
for item in *
do
    if [ -f $item ]
    then
        echo $item
    fi
done

 

for

do

done

 

if

then

(elif...then...)

(else)

fi

 

[Bash Scripting LOOP]for, while. until

标签:col   scripting   The   script   loop   while   bin   rip   span   

原文地址:https://www.cnblogs.com/profesor/p/12953256.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!