awk偶数行 我们知道用sed输出奇偶数行非常简单,事实上awk也不麻烦 root@bwhhkle:~# cat lines.bak 1 2 3 4 5 6 root@bwhhkle:~# awk '!(a=!a)' lines.bak 2 4 6 Tags: awk, awk详解, 偶数行 Read more articles Previous Postawk的0与”0″假与真awk真假 Next Postawk重复行 You Might Also Like grep正则零宽断言 January 6, 2016 sed空行规则 June 14, 2016 salt查看bm-cdn状态 October 30, 2019