for i in $(seq 1 $END); do echo $i; done
edit: I prefer seq
over the other methods because I can actually remember it 😉
More Related Contents:
- How to concatenate string variables in Bash
- Difference between single and double quotes in Bash
- Command not found error in Bash variable assignment
- When do we need curly braces around shell variables?
- Why equal to operator does not work if it is surrounded by space?
- What is the purpose of “&&” in a shell command?
- Test for non-zero length string in Bash: [ -n “$var” ] or [ “$var” ]
- What is the difference between ${var}, “$var”, and “${var}” in the Bash shell?
- What does “plus colon” (“+:”) mean in shell script expressions?
- Why equal to operator does not work if it is not surrounded by space?
- In the shell, what does ” 2>&1 ” mean?
- How do I split a string on a delimiter in Bash?
- Looping over pairs of values in bash [duplicate]
- How to run the sftp command with a password from Bash script?
- Random number from a range in a Bash Script
- How to check the exit status using an ‘if’ statement
- Variable expansion is different in zsh from that in bash
- Best way to make a shell script daemon?
- Can colorized output be captured via shell redirect? [duplicate]
- Longest line in a file
- Simple method to shuffle the elements of an array in BASH shell?
- Detect if PATH has a specific directory entry in it
- How to view files in binary from bash?
- How does AND and OR operators work in Bash?
- Running shell command that has nested quotes via ssh
- Test if a command outputs an empty string
- How to split one string into multiple variables in bash shell? [duplicate]
- How to pipe stdout while keeping it on screen ? (and not to a output file)
- How to wait for an open port with netcat?
- How to properly nest Bash backticks