|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ASCII ordering with sort command
Hi,
When I use the "sort" command, the results are NOT coming back in ASCII order. I thought the default for this command was to return results in ASCII order. To illustrate, myfile contains 3 names: Ann $Brad Carrie Here is a transcript of when I use the sort command: [root]# sort myfile Anne $Brad Carrie However, this is wrong (I think). The correct ASCII ordering of these names would be as follows: $Brad Anne Carrie ...because the $ symbol precedes alphanumberic characters in an ASCII ordering. How can I alter the sort command to properly ASCII order the names in a file? Thank you! |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > ASCII ordering with sort command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|