[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

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