AdSense

Sunday, March 22, 2015

Brace expansion in Linux

Brace expansion
patterns to be brace expanded take the form of an optional preamble pair of braces, followed by an optional postscript. The preamble is prefixed to each string contained within the braces, and the postscript is then appended to each resulting string, expanding left to right.

Brace expansions may be nested.


echo {{a,b}o{m,n}p,c}
aomp aonp bomp bonp c




No comments:

Post a Comment