Bagi juragan pembaca yang belum atau ingin memahami lebih dalam tentang dunia internet agar memiliki skill/keterampilan bermain internet, di sini tempatnya
Home »
lainnya
» Shell Scripting Tutorial For Beginners Eighteen - Until Loop
Shell Scripting Tutorial For Beginners Eighteen - Until Loop
Posted by Hold
on January 22, 2017
#!/bin/bash# until loopsn=1# offset wayecho "----until loops------first way-------------------"until [ $n -gt ten ]do echo "$n" (( n++ ))done# instant wayn=1echo "----until loops------second way-------------------"until (( $n > ten )) do echo "$n" (( ++n ))done# 3rd wayn=1echo "----until loops------third way-------------------"until [ $n -gt ten ]do echo "$n" n=$(( n+1 ))done
0 comments:
Post a Comment