{a[$0]} END {for(i in a) for(j in a) for(k in a) print i, j, k}
a b c
a a a a a b a a c a b a a b b a b c a c a a c b a c c b a a b a b b a c b b a b b b b b c b c a b c b b c c c a a c a b c a c c b a c b b c b c c c a c c b c c c
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!