반응형
while문
while {조건문}
do
{실행문}
done
ex)
#!/bin/sh
a=0
while [ a -lt 10]
do
echo "$a"
a=$(expr $a + 1)
done
반응형
while {조건문}
do
{실행문}
done
ex)
#!/bin/sh
a=0
while [ a -lt 10]
do
echo "$a"
a=$(expr $a + 1)
done