brace_exp.ion 669 B

12345678910111213141516171819202122232425
  1. echo '# ANCHOR: single_brace_expansion'
  2. echo filename.{ext1,ext2}
  3. echo '# ANCHOR_END: single_brace_expansion'
  4. echo '# ANCHOR: multi_brace_expansion'
  5. echo job_{01,02}.{ext1,ext2}
  6. echo '# ANCHOR_END: multi_brace_expansion'
  7. echo '# ANCHOR: nested_brace_expansion'
  8. echo job_{01_{out,err},02_{out,err}}.txt
  9. echo '# ANCHOR_END: nested_brace_expansion'
  10. echo '# ANCHOR: range_brace_expansion'
  11. echo {1..10}
  12. echo {10..1}
  13. echo {1...10}
  14. echo {10...1}
  15. echo {a..d}
  16. echo {d..a}
  17. echo {a...d}
  18. echo {d...a}
  19. echo '# ANCHOR_END: range_brace_expansion'
  20. echo '# ANCHOR: range_brace_expansion_as_array'
  21. for num in {1..10}
  22. echo $num
  23. end
  24. echo '# ANCHOR_END: range_brace_expansion_as_array'