[Bash Scripting LOOP]for, while. until

 

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

 

for

do

done

 

if

then

(elif...then...)

(else)

fi

 

posted @ 2020-05-24 22:53  profesor  阅读(95)  评论(0编辑  收藏  举报