Magic Banana quoted the magic words:
 "used by itself, -u causes 'uniq' to print unique lines, and nothing else"

Put another way: Uniq -u skips duplicated lines altogether.

Sort -u needs to be mentioned earlier on the man sort page, as it will handle
unpredictable outputs reliably.

Thanks are due to the always-conscientious teacher !

Reply via email to