0

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}
Cyrus
  • 84,225
  • 14
  • 89
  • 153
Jake
  • 9
  • 1

0 Answers0