for

for iin 1 2 3;doecho"$i"done
for filein *.txt;doecho"$file"done

while

whileread -r line;doecho"$line"done < file.txt

until

until ping -c1 google.com;dosleep 1done