KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am trying to pass the argument as max limit for the for loop like this: #!/bin/bash for i in {1..$1} do echo $i done This however returns {1..2} when called with argument 2 , instead of executing the script and giving me 1 2
Tags (comma-separated)
Save Edits
Cancel