How to place a comma in 'a{b,c,d}e' metanotation

Narayan S. Raja raja at bombay.cps.msu.edu
Fri Jan 25 08:35:06 AEST 1991


In article <4890 at umbc3.UMBC.EDU>, Rouben Rostamian writes:

< The csh man page explains how the metanotation "a{b,c,d}e" expands into
< "abe ace ade".  What it does not explain is how to place commas in the
< output, if necessary.  For instance I wish that the construction
< "a{b\,,c\,,d}" would expand to the comma separated list "ab, ac, ad",


23 pixel>echo a{"b,","c,",d}
ab, ac, ad


Narayan Sriranga Raja.



More information about the Comp.unix.questions mailing list