From this site:
for i in $(seq 1 10);
do
echo $i
done
More Related Contents:
- How do I iterate over a range of numbers defined by variables in Bash?
- Looping over pairs of values in bash [duplicate]
- How to loop over files in directory and change path and add suffix to filename
- How to perform a for loop on each character in a string in Bash?
- How to skip the for loop when there are no matching files?
- Looping through alphabets in Bash
- How to parallelize for-loop in bash limiting number of processes
- How to add leading zeros for for-loop in shell? [duplicate]
- Using a variable in brace expansion range fed to a for loop
- Loop over tuples in bash?
- Read user input inside a loop
- Bash variable scope
- How to pass all arguments passed to my bash script to a function of mine? [duplicate]
- Simple logical operators in Bash
- How do I rename the extension for a bunch of files?
- How best to include other scripts?
- How can I remove all text after a character in bash?
- What do $? $0 $1 $2 mean in shell script? [duplicate]
- Is there a bash command which counts files?
- What is the ‘function’ keyword used in some bash scripts?
- How does bash tab completion work?
- How to tell bash that the line continues on the next line
- Bash script store command output into variable
- Expand variables in sed
- Exclude a string from wildcard search in a shell
- Is there an elegant way to store and evaluate return values in bash scripts?
- Using groovy, how do you pipe multiple shell commands?
- Prevent grep returning an error when input doesn’t match
- Read stdin for user input when a file is already redirected to stdin [duplicate]
- How to get bc to handle numbers in scientific (aka exponential) notation?