Question : shell script while loop example
Answered by : venkatesh
#!/bin/sh
INPUT_STRING=hello
while [ "$INPUT_STRING" != "bye" ]
do echo "Please type something in (bye to quit)" read INPUT_STRING echo "You typed: $INPUT_STRING"
done
Source : https://www.shellscript.sh/loops.html | Last Update : Sat, 15 May 21
Question : while loop bash
Answered by : wantyapps
while true;
do #code
done
Source : https://stackoverflow.com/questions/16489809/emulating-a-do-while-loop-in-bash | Last Update : Sat, 30 May 20
Question : while loop shell script
Answered by : breakable-bison-slugdvxuz87h
#!/bin/sh
a=0
while [ $a -lt 10 ]
do echo $a a=`expr $a + 1`
done
Source : https://www.tutorialspoint.com/unix/while-loop.htm | Last Update : Thu, 12 Nov 20
Question : While loops in bash
Answered by : 4a729krishnaa
#!/bin/bash
X=0
while [ $X -le 20 ]
do echo $X X=$((X+1))
done
Source : http://www.panix.com/~elflord/unix/bash-tute.html | Last Update : Wed, 07 Sep 22