Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash for i in range then

#!/bin/bash

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

bash iterate over a variable range of numbers

#!/bin/bash
START=1
END=5
for i in $(eval echo "{$START..$END}")
do
	echo "$i"
done
Comment

PREVIOUS NEXT
Code Example
Shell :: bash count occurrences of string in array 
Shell :: import single table from mysql dump 
Shell :: how to shutdown windows 11 in powershell 
Shell :: best code editor 
Shell :: git ignore not saving changes 
Shell :: composer php 
Shell :: install brew mac 
Shell :: where is ubuntu installed in windows 10 
Shell :: how to scp from remote machine to local machine 
Shell :: alphabetically order text file 
Shell :: heroku cli install 
Shell :: download pdf arranger ubuntu 
Shell :: how to unistall dependencies 
Shell :: install bc command linux 
Shell :: install vmware workstation linux mint 
Shell :: bash get absolute path 
Shell :: stack navigator 
Shell :: react quill 
Shell :: dconf command not found 
Shell :: AWS EC2 Stress tool activate on command line 
Shell :: docker change timezone 
Shell :: journalctl date 
Shell :: bat restart printer spooler 
Shell :: how to solve the brightness problem on unbuntu 
Shell :: ubuntu theme change command 
Shell :: run crontab on mac 
Shell :: install radium 
Shell :: install kafkacat 
Shell :: conda install pdftotext 
Shell :: bash how to print the list of files in a directory ls 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =