rrconkle@lemmy.ziptoRust@programming.dev•GitHub - Atreyagaurav/numrng: Terminal Command to generate list of numbers from human-readable representationEnglish
8·
5 months agoBash can do discontinuous ranges
$ echo {{1..3},{7..8}}
1 2 3 7 8
Bash can do discontinuous ranges
$ echo {{1..3},{7..8}}
1 2 3 7 8
Yes, just give the step as the third number:
{1..10..2}