1. 查看TCP端口
$ lsof -iTCP -sTCP:LISTEN -P -n
2. 合并一个文件中的相邻奇偶行
$ seq 10 | xargs -n2 echo
3. 删除文件中的奇数行或者偶数行
$ cat file | awk '{if(NR % 2==0) print}' > even
$ cat file | awk '{if(NR % 2==1) print}' > odd
$ lsof -iTCP -sTCP:LISTEN -P -n
$ seq 10 | xargs -n2 echo
$ cat file | awk '{if(NR % 2==0) print}' > even
$ cat file | awk '{if(NR % 2==1) print}' > odd