摘要: 一个文件1.txt,内容如下 a b c d e 目的把列变行,输出为: a b c d e 脚本如下: awk 'BEGIN{RS="";FS="\n";OFS=" "}{print }' test a b c d e 理论上应该实现我们想要的 a b c d e 问题出在这里Understanding$0It is important to remember that$0is thefullrecord, exactly as it was read from... 阅读全文
posted @ 2013-08-02 20:04 txwsqk 阅读(1072) 评论(0) 推荐(0) 编辑