首页 > 技术文章 > 【shell脚本】显示文件的偶数或奇数行

cnpirate 2013-10-21 14:58 原文

# Dispaly the odd line.
awk 'NR%2==1' file

推荐阅读