braces.ion 540 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # nested braces
  2. echo 1{A{1,2},B{1,2}}
  3. # permutating braces
  4. echo {0,1}abc{2,3,4}def{5,6,7}{g,h,i}
  5. # inclusive ranges
  6. echo {-1...1}
  7. echo {2...0}
  8. echo {a...c}
  9. echo {d...b}
  10. echo {A...C}
  11. echo {D...B}
  12. # exclusive ranges
  13. echo {-1..2}
  14. echo {2..-1}
  15. echo {a..d}
  16. echo {d..a}
  17. echo {A..D}
  18. echo {D..A}
  19. # inclusive stepped ranges
  20. echo {0..2...4}
  21. echo {a..2...e}
  22. echo {A..2...E}
  23. echo {0..-2...-4}
  24. echo {e..-2...a}
  25. echo {E..-2...A}
  26. # exclusive stepped ranges
  27. echo {0..2..5}
  28. echo {a..2..f}
  29. echo {A..2..F}
  30. echo {0..-2..-5}
  31. echo {e..-2..a}
  32. echo {E..-2..A}