Public bug reported: Binary package hint: coreutils
As I understand it, uniq -u and sort -u should both give the same set of lines, albeit in different order. The -u switch should mean "output unique lines only" on both utils. However, when using uniq -u, I get dropped lines. I included a sample log file which demonstrates this behaviour. If you don't want to make a manual comparison of $ sort -u uniq-test and $ uniq -u uniq-test you can simply try $ diff -u <(uniq -u uniq-test | sort) <(sort -u uniq-test) which will reveal the difference. I hope this bug gets looked into quickly, as it is such a fundamental command line tool ** Affects: coreutils (Ubuntu) Importance: Undecided Status: New -- uniq -u drops wrong lines https://bugs.launchpad.net/bugs/299897 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs