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 : bash while loop
Answered by : agenttequila
#!/bin/bash
i=0
While [ $i -le 10 ]
do echo i:$i ((i+=1))
done
Source : https://hakin9.org/bash-introduction-for-hackers-part-2/ | Last Update : Thu, 02 Jun 22
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
Question : bash run while loop
Answered by : tiago-frana
while true; do echo -e "\nnew proccess"; php artisan queue:work --once; done
Source : | Last Update : Wed, 03 Nov 21