Ramsee
New User
Joined: 06 Jan 2011 Posts: 53 Location: Chennai
|
|
|
|
I need a help to sort the fields based on the second word of the records,
Input:
ACHIEVEMENT UNIQUE
ACHIEVEMENT UNIQUE
ACHIEVEMENT UNIQUE1
ABC CORP
BELL LAB
BELL LAB
BELL INC
BELL CORP
Output:
ACHIEVEMENT UNIQUE
ACHIEVEMENT UNIQUE1
ABC CORP
BELL LAB
BELL INC
BELL CORP
Here the sort is based on the first word is unique or not, if the first word is unique then we need to compare the next word, if the second word is unique we need to write in the output file, if the second word is not unique we will exclude, there is not size limit for the first and second word. |
|