去除文件中的换行符

awk '{printf("%s",$0)}' file.txt > file.txt.tmp && mv file.txt.tmp file.txt

猜你喜欢

转载自nonkr.iteye.com/blog/2055592