Quantcast
Channel: Bashタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 2861

bash中的for循环

$
0
0
for i in 1 2 3 4 5 do echo "Welcome $i times" done # bash version 3.0+ for i in {1..5} do echo "Welcome $i times" done # bash version 4.0+ echo "Bash version ${BASH_VERSION}..." for i in {0..10..2} do echo "Welcome $i times" done for (( c=1; c<=5; c++ )) do echo "Welcome $c times" done 参考:

Viewing all articles
Browse latest Browse all 2861

Trending Articles