awk奇数行二 # 利用awk的getline函数也能打印奇数行 root@bwhhkle:~# cat e 1a 2b 3c 4d 5e 6f 7g 8h root@bwhhkle:~# awk '{print;getline}' e 1a 3c 5e 7g Tags: awk, awk详解, getline Read more articles Previous Postawk去重awk奇数行 Next Postawk拆分行二 You Might Also Like scplt推送服务监控脚本 September 6, 2016 awk拆分行 September 6, 2016 sed -n选项 September 16, 2015