Mac iTOps Tube

Wednesday, May 16, 2012

strings combinations...

hi,

i have a file with list of strings like this:

apple

pie

cake



i have to calculate all of the possible combinations of strings (string order does not matter):



apple

pie

cake

apple pie

apple cake

pie cake

apple pie cake



can you help me getting it with bash?

thanks...











No comments:

Post a Comment