I have a file with these lines:
aa bb cc dd
I want to convert this into:
aa aa bb bb cc cc dd dd
Is this poss
I like g/^/t. The g (for global) command will look for any lines that match a pattern. The pattern we specified is ^, which will match all lines. t will copy and paste, and finally the dot tells it to paste below.
g/^/t.
g
global
^
t
dot
Do I win for brevity?