【shell脚本】显示文件的偶数或奇数行

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

原文地址:https://www.cnblogs.com/cnpirate/p/3380604.html