【发布时间】:2011-05-31 09:26:55
【问题描述】:
我注意到tail +2在Solaris ksh中是支持的,但是在Red Hat Linux中会出现错误:
c008>> ps -p 4009,6282,31401,31409 | tail +2
tail: cannot open `+2' for reading: No such file or directory
在 Solaris 中,
bjbldd>> ps -p 2622,16589,11719,846 |tail +2
16589 ?? 0:00 xterm
846 pts/180 0:00 cscope
11719 pts/180 0:00 cscope
2622 pts/114 0:00 apxcscop
PID TTY TIME CMD这一行被“tail +2”排除。
我知道grep -v PID 会起作用。但是不知道Linux tail 有没有类似的选项?
【问题讨论】:
标签: tail