sort

Cesar Covarrubias cesar at uci.edu
Sat Jun 17 18:36:25 UTC 2006


Hello,

If you get rid of the titles (name, age, income), you can use the following
command:

cat test | awk '{print $2}' | sort



Cesar 
-----Original Message-----
From: redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com]
On Behalf Of Aimin Yan
Sent: Saturday, June 17, 2006 11:24 AM
To: redhat-list at redhat.com
Subject: sort

i have a file, I want to sort this file based on the 2nd column, and start 
from 1st row.how can
I do use sort command to do in redhat linux.
for example, this is file I want to sort


name  age  income
trorry   34    344
aimin   36    345
shihe   23    3667

Aimin

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list




More information about the redhat-list mailing list