就比如文件 1 2 3 复制完 1 1 2 2 3 3
sed 's/\(.*)/\1\n\1/' a.txt
sed -n 'h;H;x;p' a.txt 试试这个
sed -n 'h;H;x;p' a.txt
sed 'p' a.txt
Six six
sed -n 'p;p' t.txt