foo bar, foo bar, foo bar foo bar
Given this beautiful poem, how could all the
bar be replaced by
superman, but each time with a different ending, contained in an array
(is super, is blazing fast, is marvelous, cawabanga)
So the result would be :
foo superman is super, foo superman is blazing fast, foo superman is marvelous foo superman cawabanga
I know it is possible to use a for/loop to do so, with sed. But is there a shorter, more beautiful solution?