braces.ion 572 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. echo It{{em,alic}iz,erat}e{d,}
  6. # inclusive ranges
  7. echo {-1...1}
  8. echo {2..=0}
  9. echo {a...c}
  10. echo {d..=b}
  11. echo {A..=C}
  12. echo {D...B}
  13. # exclusive ranges
  14. echo {-1..2}
  15. echo {2..-1}
  16. echo {a..d}
  17. echo {d..a}
  18. echo {A..D}
  19. echo {D..A}
  20. # inclusive stepped ranges
  21. echo {0..2...4}
  22. echo {a..2...e}
  23. echo {A..2...E}
  24. echo {0..-2...-4}
  25. echo {e..-2...a}
  26. echo {E..-2...A}
  27. # exclusive stepped ranges
  28. echo {0..2..5}
  29. echo {a..2..f}
  30. echo {A..2..F}
  31. echo {0..-2..-5}
  32. echo {e..-2..a}
  33. echo {E..-2..A}