sed怎么把文件的每一行复制一次

Viewed 91

就比如文件
1
2
3
复制完
1
1
2
2
3
3

4 Answers

sed -n 'h;H;x;p' a.txt 试试这个