[Shell Tips] for i = 0 to 6, 或者 a to z 之使用方法

for i = 0 to 6, 或者 a to z 之使用方法

for i in {0..6}; do
    echo $i
done

for i in {a..z}; do
    echo $i
done

參考來源: Armbian

This entry was posted in shell script and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *