The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr HP-UX 1 10-16-2006 01:16 PM
How to use more than one MPE command STREAM with Unix command in a single shell? bosskr Shell Programming and Scripting 0 09-19-2006 06:44 PM
wc command help.... and other unix command....... urgent dashi2k UNIX for Dummies Questions & Answers 1 01-20-2005 03:39 PM
UNIX command jodders UNIX for Dummies Questions & Answers 2 02-15-2004 07:34 AM
Unix command help JJJ UNIX for Dummies Questions & Answers 3 03-11-2002 06:39 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 12-15-2005
Registered User
 

Join Date: Dec 2005
Posts: 7
Unix Command

Hi unixers... I need some help,

I have this command,

ps -elf|grep proadm|awk '{ print $3 "-" $4 "-" $10 }'

column 10 returns a value and I want that in the output only apears lines with values bigger than 500000 in column 10.

How do I do that?

Tkz!

Last edited by sliver; 12-15-2005 at 11:15 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 12-15-2005
mona's Avatar
Registered User
 

Join Date: Nov 2005
Location: Singapore
Posts: 96
Try like this
Code:
ps -elf |grep proadm|awk '$10 > 500000 { print $3 "-" $4 "-" $10 }'
Reply With Quote
  #3  
Old 12-16-2005
Registered User
 

Join Date: Dec 2005
Posts: 7
Quote:
Originally Posted by mona
Try like this
Code:
ps -elf |grep proadm|awk '$10 > 500000 { print $3 "-" $4 "-" $10 }'
It works! Tkz Mona!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:04 PM.


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

Content Relevant URLs by vBSEO 3.2.0