by Michael Wicherski on Fri Nov 07, 2008 4:59 am
uhm
just one line?
if you wanted line 2 you could do
ps -l | head -2 | tail -n1 > file
run ps command with l option
then pipe into head and print out first 2 lines
then pipe into tail to print the last line (of 2 so line 2)
then redirect to a file
o.O
(i think that should work anyway; not too familiar with the ps command yet)
**edit/update** notice that the first line ps prints to the screen, the column titles, is also counted, so if you want the second item on the list, you actually want the third line**