The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Compare 2 sorted files varungupta Shell Programming and Scripting 7 01-25-2008 10:07 AM
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 01:30 AM
Inserting in sorted rows buddyme UNIX for Dummies Questions & Answers 1 10-24-2007 02:26 AM
Need to display sorted output on 1 line! knc9233 UNIX for Dummies Questions & Answers 2 01-17-2007 07:26 PM
comm - sorted result issues krsunderm UNIX for Dummies Questions & Answers 1 11-29-2005 04:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #8  
Old 05-19-2007
aigles's Avatar
Registered User
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,212
You can do something like that:
Code:
ps -f | tail +2 | sort -k6,6n
The header line is removed.
If you want to keep it :
Code:
ps -f | awk 'NR==1; NR>1 {print $0 | "sort -k6,6n"}'
Jean-Pierre.
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:33 AM.


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