摘要: 1. 采用awk awk BEGIN{RS=EOF}'{gsub("\n"," ");print;}' a.txt awk BEGIN{RS=EOF}'{gsub(/\n/," ");print}' file 说明:awk默认将记录分隔符(record separator即RS)设置为\n,此行代码 阅读全文
posted @ 2020-10-27 19:14 redman274 阅读(226) 评论(0) 推荐(0) 编辑