I have an input file like this:
a b c d
And I want to transform my input file into:
a a b b c c d d
Using sed and