Bash:
$: echo {1..5}
1 2 3 4 5
$: n=5
$: echo {1..$n}
{1..$n}
I can't figure out how to use this syntax to work on variables. I'm sure this answer is very simple, but syntax like this is very hard to "just Google".
Bash:
$: echo {1..5}
1 2 3 4 5
$: n=5
$: echo {1..$n}
{1..$n}
I can't figure out how to use this syntax to work on variables. I'm sure this answer is very simple, but syntax like this is very hard to "just Google".