I'm trying to pass an argument to a bash script and have it iterate through letters
#!/bin/bash
for l in {$1..$2}; do
echo $l
done
When I try to run ./myscript.sh A D Instead of getting:
A
B
C
D
I get:
{A..D}
I'm trying to pass an argument to a bash script and have it iterate through letters
#!/bin/bash
for l in {$1..$2}; do
echo $l
done
When I try to run ./myscript.sh A D Instead of getting:
A
B
C
D
I get:
{A..D}