Skip to main content.

2006-Jan-19

Sorting some data with "sort -urn" lost a lot of data. I posted examples and questions to tech-userlevel, but later realized that coreutils and DragonFly do same. I learned that the -n in addition to -u makes it lose data. The documentation is unclear. But the -n only compares the first value on line and other value is ignored and now the -u for unique doesn't see other data on line so assumes the line is identical so the line is removed.