sed 替换换行符 cat a.txt | sed ":a;N;s/ //g;ta" 资料来源: https://blog.csdn.net/u011729865/article/details/71773840