Problem sorting file
by aikempshall from LinuxQuestions.org on (#4Z814)
I have a file
Quote:
I want to sort it into title order so the male title comes before the female title. So I use -
Code:sort < input.unsortedWhich gives me
Quote:
The file appears to remain unsorted!
Alex


Quote:
Mrs,NJ,Nicola, Mr,SP,Stuart,D Mrs,R,Rhian,Ro Mr,S,Sam,Barto Mrs,SA,Susan,R Mr,S,Scott,Bro Mrs,S,Shiralee, Mr,S,Stephen,C Mr,S,Symon,Wil Mrs,TM,Tracey, Mr,SV,Stephen, |
Code:sort < input.unsortedWhich gives me
Quote:
Mrs,NJ,Nicola, Mr,SP,Stuart,D Mrs,R,Rhian,Ro Mr,S,Sam,Barto Mrs,SA,Susan,R Mr,S,Scott,Bro Mrs,S,Shiralee, Mr,S,Stephen,C Mr,S,Symon,Wil Mrs,TM,Tracey, Mr,SV,Stephen, |
Alex