File globbing : Brace Expansion - Explained

Brace Expansion

Brace expansion is used to generate discretionary strings of characters. Braces contain a comma separated list of strings, or a sequence expression. The result includes the text preceding or following the brace definition. Brace expansions may be nested, one inside another.

echo {Sunday,Monday,Tuesday,Wednesday}.log

echo file{1..3}.txt

echo file{a..c}.txt

echo file{a,b}{1,2}.txt

echo file{a{1,2},b,c}.txt

 File globbing : Brace Expansion - Explained




Tech info

Comments