Horje
while loop shell script Code Example
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
while loop shell script
#!/bin/sh

a=0

while [ $a -lt 10 ]
do
   echo $a
   a=`expr $a + 1`
done
linux while loop
while true;
do
	#code
;done
for loop while loop shell functions
while check1
do
    # Loop while check1 is successful (returns 0)

    if check1
    then
        echo 'check1 was successful'
    fi

done




Shell

Related
pip upgrade package Code Example pip upgrade package Code Example
change branch name Code Example change branch name Code Example
run sh with parameter Code Example run sh with parameter Code Example
remove a package ubuntu Code Example remove a package ubuntu Code Example
brew install rvm Code Example brew install rvm Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11