Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

while loop bash

while true;
do
	#code
done
Comment

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
Comment

bash while loop

#!/bin/bash
i=0
While [ $i -le 10 ]
do
 echo i:$i
 ((i+=1))
done
Comment

bash while done

while CONDITION_STATEMENT; do SOME_CODE; done
Comment

While loops in bash

#!/bin/bash
X=0
while [ $X -le 20 ]
do
	echo $X
	X=$((X+1))
done
Comment

bash run while loop

while true; do echo -e "
new proccess"; php artisan queue:work --once; done
Comment

PREVIOUS NEXT
Code Example
Shell :: rename directory from command line 
Shell :: windows kill process running on port 
Shell :: awk or statement 
Shell :: install zabbix 
Shell :: grep Matching options 
Shell :: how to curl a service inside a pod in kubernetes? 
Shell :: replace main with another branch 
Shell :: vscodium download ubuntu 
Shell :: Instal helm ubuntu linux 
Shell :: how to search in git bash 
Shell :: appcenter install mac 
Shell :: lumbha ram github 
Shell :: download stardocks sdk from nuget package 
Shell :: untar 
Shell :: calcul en shell 
Shell :: router dom react 
Php :: laravel artisan clear cache 
Php :: install php8 on linux 
Php :: generate random unique hex color code using php 
Php :: php json pretty print 
Php :: eloquent get random 
Php :: php get last modified date of file 
Php :: laravel get url segment 
Php :: php file_get_contents follow redirect 
Php :: show error php in htaccess 
Php :: get last character of string php 
Php :: laravel 8 db like query 
Php :: wordpress print all categories 
Php :: php has been blocked by CORS policy 
Php :: php referrer 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =