Bash loop tricks: Difference between revisions
Jump to navigation
Jump to search
(Created page with "===Simple counter loop=== <pre> for ((i=1; i <= $max ; i++)) do echo $i done </pre> $max can be a number also.") |
(No difference)
|
Latest revision as of 12:36, 13 May 2019
Simple counter loop
for ((i=1; i <= $max ; i++)) do echo $i done
$max can be a number also.