bash for loop: a range of numbers [duplicate]
The code should be as follows (note the shebang says bash
, not sh
):
#!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {0..10..1} do echo "Welcome $i times" done
The code should be as follows (note the shebang says bash
, not sh
):
#!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {0..10..1} do echo "Welcome $i times" done