The code should be as follows (note the shebang says bash, not sh):
#!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {01..10..1}; do echo "Welcome $i times" done sourceYou can use {0..10..1} if you want to start from 0.
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internal The code should be as follows (note the shebang says bash, not sh):
#!/bin/bash echo "Bash version ${BASH_VERSION}..." for i in {01..10..1}; do echo "Welcome $i times" done sourceYou can use {0..10..1} if you want to start from 0.
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 {1..10} do echo "Welcome $i times" done You can use {0..10..1} if you want to start from 0.
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 #!/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 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 iThe 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 i code should be as follows
#!/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