Answers for "how to make a for in bash"

0

how to make a for in bash

#in bash
for var in limit
do
	#action
done
# done is very important

#more traditionnal for
for (( var = 0; var < 10; var++)
do
	echo "var = $var"
done

#output :
var = 0
var = 1
var = 2
var = 3
var = 4
var = 5
var = 6
var = 7
var = 8
var = 9
Posted by: Guest on August-04-2021

Code answers related to "how to make a for in bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language