001、
(base) [email protected]:/home/test2# ls a.txt (base) [email protected]:/home/test2# cat a.txt 1 2 3 4 5 6 7 8 9 10 (base) [email protected]:/home/test2# cat a.txt | sed 'N; s/\n/\t/' ## 以两行为单位,将换行符替换为制表符 1 2 3 4 5 6 7 8 9 10