标签:style blog http color io art ar line
取奇数行
awk ‘NR%2‘ file
MR是行号,行号对2取模,奇数的结果为1,所以打印
如果还不懂看这个你就懂了
awk ‘{if (NR%2==1) print $0}‘ file
原文:http://blog.csdn.net/hongchangfirst/article/details/25110611
作者:hongchangfirst
hongchangfirst的主页:http://blog.csdn.net/hongchangfirst
awk按照奇数行和偶数行进行处理,布布扣,bubuko.com
标签:style blog http color io art ar line
原文地址:http://blog.csdn.net/hongchangfirst/article/details/25110611