repeat string in a line using sed

Posted by user343811 on Stack Overflow See other posts from Stack Overflow or by user343811
Published on 2010-05-18T08:46:41Z Indexed on 2010/05/18 8:50 UTC
Read the original article Hit count: 97

Filed under:

I would like to repeat each line's content of a file, any quick solution using sed.

supposed the input file is
abc
def
123

The expected ouput is:
abcabc
defdef
123123

Thank you for your help

© Stack Overflow or respective owner

Related posts about sed