The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
merge two files in ascending order
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
merge two files in ascending order
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
09-04-2008
user_prady
Registered User
Join Date: Sep 2007
Posts: 163
Quote:
Originally Posted by
Annihilannic
The following will sort first by the first key, numerically, and then by the second key alphabetically:
Code:
sort -k1,1n -k2,2 file1 file2 > file3
Thanks for your reply But I want to sort reverse for the second key ..
user_prady
View Public Profile
Find all posts by user_prady
Find user_prady's past nominations received
Find user_prady's present nominations given