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

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

posted @ 2013-10-21 14:58  朝雾之归乡  阅读(478)  评论(0编辑  收藏  举报