Answers for "do while loop shell"

3

shell script while loop example

#!/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
Posted by: Guest on May-08-2021
0

bash do-while

while : ; do 
    ACTION_CODE
    [[ CONDITION_STATEMENT ]] || break
done
Posted by: Guest on December-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language