Re: sort

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aimin Yan wrote:
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
sort -k2 -n orignal_file -o sorted_file
-r will reverse the sort order

man page for sort is fairly small, and worth a read if your using it.

Regards,

Sean


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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux