How to Extract

Hi All,

   How to extract User,Process Name,Arguments from the output of "/usr/ucb/ps -auxww" on Solaris?

   Please Reply... 

Thanks In Advance...
Harikrishna

It depends on what you're looking for. you can use a combination of the awk , uniq ,sort and grep commands...

I am looking to extract the columns User,Process Name and Arguments from the output of "/usr/ucb/ps -auxww" on Solaris?

So how to do it using awk ,sed or regex ...

How abt this?
/usr/ucb/ps -auxww | awk '{print $1,$9,$10,$11}'