Hasty Briefsbeta

Bilingual

Brace Expansion Tree

8 hours ago
  • #bash
  • #one-liner
  • #brace-expansion
  • Bash one-liner uses brace expansion to generate 30 English words.
  • Brace expansion iterates through possibilities in curly braces, with commas as separators.
  • Two brace expressions expand to the Cartesian product of their elements.
  • Expression {w,t,} includes an empty string as a possibility.
  • The full expression {w,t,}h{e...,ither,at} multiplies two brace sets to produce word combinations.
  • Brace expansion performs a depth-first traversal of the tree structure.