The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
extract using sed/awk - need help? Please!! gzs553 Shell Programming and Scripting 5 10-08-2007 01:54 PM
How to extract the PID from 'ps -ef' nsinha Shell Programming and Scripting 7 11-20-2006 03:47 AM
Please help! Sed extract a pattern zhen Shell Programming and Scripting 11 09-18-2006 09:36 AM
tar. I can't extract volleyboy UNIX for Dummies Questions & Answers 1 02-17-2006 07:54 AM
extract from TAR big123456 UNIX for Advanced & Expert Users 8 07-28-2005 12:00 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-19-2008
Registered User
 

Join Date: Feb 2008
Posts: 38
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-19-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 541
It depends on what you're looking for. you can use a combination of the awk , uniq ,sort and grep commands...
Reply With Quote
  #3 (permalink)  
Old 06-20-2008
Registered User
 

Join Date: Feb 2008
Posts: 38
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 ...
Reply With Quote
  #4 (permalink)  
Old 06-20-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 541
How abt this?
/usr/ucb/ps -auxww | awk '{print $1,$9,$10,$11}'
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 02:59 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0