simple example)
for ((i=1; i<=10; i+=1))
do
echo $i
sleep 1
done
#!/bin/bash
CCC=0
while [ $CCC -lt 10 ]; do
echo $CCC
sleep 1 # 1sec
let CCC=CCC+1
done
simple example)
for ((i=1; i<=10; i+=1))
do
echo $i
sleep 1
done
#!/bin/bash
CCC=0
while [ $CCC -lt 10 ]; do
echo $CCC
sleep 1 # 1sec
let CCC=CCC+1
done