Pipe the output through | awk '{print $1 " " $2 " " $5 " " $8}'

-- 
Michael Eng, Division of Informatics, The University of Edinburgh
Email: [EMAIL PROTECTED]    Web: http://ukug.freebsd.org.uk/~eng/

On Thu, 21 Sep 2000, linda hanigan wrote:

> The output is
> UID        PID  PPID  C STIME TTY          TIME CMD
> general  16661 16660  0 17:34 pts/0    00:00:00 -bash
> 
> I would like the output to be
> general  16661 17:34   -bash
> 
> I can of course work with the output to make it look like
> I want.  However I was wondering if their was a way
> ps would allow me to select which fields I want to show.
> I know ps h -f -p pid  will get rid of the header.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to