본문 바로가기
Programming/Bash : Linux Shell

Looping with Numbers

by migre 2021. 12. 17.

Use a for loop to display the natural numbers from  1 to 50

 

Seq 1 50

Seq Command in Linux [Explained With Examples] (linuxhandbook.com)

for (( c=1; c<=50; c++ ))
do
    echo "$c"
done