greping for a process that is in nanslp statr

Hi,

I have process in nanslp state, I saw it in top(1) o/p. However grepping top for the process name does not return anything. Doesn't sleeping process show up in top | grep <proc-name>?
Thanks
 
It works for me regular grep(1) against top(1):

Code:
> top | grep cron                       
 1302 root        1  44    0  3380K  1024K nanslp   0:00  0.00% cron                       
 1419 root        1  44    0  3380K  1356K nanslp   0:00  0.00% cron

But, as already suggested, if your aim is to grepping out process, pgrep(1) should do a better job.
 
Back
Top