[NBLUG/talk] bash help

Justin Thiessen thiessen at sonic.net
Mon Feb 7 13:29:27 PST 2005


On Tue, Feb 08, 2005 at 08:32:41PM +0800, JM wrote:
> Hi,
> 
> if my ps axw shows this process is there a way to get the time?
> 
> im trying awk -F'[ ]' '{print $4}'
> 
> 17797 ?        S      0:00 /usr/java/j2sdk1.4.2_01/....
> 

Try:

ps axw | awk ' { print $4 } ' 

> but my problem lies on the number of spaces betwen ? and S and S to time..


Justin
-------
thiessen at sonic.net




More information about the talk mailing list