Expand Bash brace alternatives and sequences into their generated words.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Comma alternatives and numeric or alphabetic sequences expand before pathname expansion, producing the Cartesian product of adjacent expressions. Generated words are literal and do not require matching files.
file{1..3}{a,b}.txt
Expansions: file1a.txt, file1b.txt, file2a.txt, file2b.txt, file3a.txt, file3b.txt Count: 6 Warning:
Backup loops, build scripts, and mkdir commands generate related paths.