Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

for i in range bash

#Just use command seq to iterate a range from start to end
END=10
for i in $(seq 1 $END); do echo $i; done
Comment

bash for i in range then

#!/bin/bash

for i in {0..100};
do
	echo "hello"
	sleep 5s
done
Comment

bash for i in range

# Brace Expansion
for i in {1..10}; do echo $i; done
Comment

PREVIOUS NEXT
Code Example
Shell :: install docker desktop on server 2019 
Shell :: how to merge branch to master 
Shell :: tree command 
Shell :: git push and pull not asking password 
Shell :: not null check in powershell variable 
Shell :: dartlang ubuntu 
Shell :: enter user root linux 
Shell :: list of installed packages and version 
Shell :: grep not match 
Shell :: PowerShell read CSV file line by line 
Shell :: git revert to last commit 
Shell :: bash script to clean up log files 
Shell :: getcomposer 
Shell :: delete a github repository using bash 
Shell :: how to install redis 
Shell :: bash check if string in file 
Shell :: print in shell script 
Shell :: how to remove blank lines in bash 
Shell :: kubectl get namespaces 
Shell :: how to install portainer on raspberry pi 
Shell :: how to copy one local machine to server through ssh 
Shell :: start docker 
Shell :: how to install jack client in ubuntu 
Shell :: get current working directory ubuntu 
Shell :: flutter cmdline-tools component is missing 
Shell :: Impossible de trouver le paquet php-gettext 
Shell :: force remove hidden folder in linux 
Shell :: dotnet test 
Shell :: pyenv install latest version 
Shell :: bcryptjs 
ADD CONTENT
Topic
Content
Source link
Name
8+5 =