shell brace expansion (was "regex help")

Linux for blind general discussion blinux-list at redhat.com
Thu Feb 10 12:40:40 UTC 2022


Tim again.

> So, the syntax is
> 
> start value double dot end value double dot step increment
> 
> and if the third value is omitted, it defaults to steps of 1.

Unless the first value is less than the second value in which case
the step defaults to -1 such as

  $ echo {5..1}
  5 4 3 2 1

-tim




More information about the Blinux-list mailing list