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 expect详解 October 9, 2014 bm灰度更新shell脚本二 May 6, 2019 exec详解 March 9, 2017