How do I loop COMMANDS X times in bash?
How do I loop COMMANDS X times in bash?
Don't use W3Schools as a resource! (Inconsequential foul language at the jump)
Open Linux Forums (More foul language, but well worth it for the quality of support and good humor.)
If you want to discuss W3Schools, please PM me instead of posting.
while [ a != x ]
do
let a=a+1
done
for x in numbers
do
done
This command gets the job done every time:
But for your specific query, try this:Code:man bash > bash-help.txt; gedit ./bash-help.txt; rm ./bash-help.txt
PeaceCode:#!/bin/bash for (( i=0 ; $i<10 ; i++ )); do echo $i done
Bookmarks