I noticed that tail +2
supported on Solaris ksh, but an error will occur on Red Hat Linux:
c008>> ps -p 4009,6282,31401,31409 | tail +2 tail: cannot open `+2' for reading: No such file or directory
In 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
The PID TTY TIME CMD
excluded by the symbol "tail +2".
I know that grep -v PID
will work. But I wonder if there are similar options for Linux tail?
boyang
source share