$ perl -le'print for glob "{a,b,c}{d,e,f}"' ad ae af bd be bf cd ce cf