3 ms·
> you almost invevitably want to run sort before you run uniq And then you don't actually want uniq anyway since sort has a -u switch that removes duplicate li
by ars 12y ago
> you almost invevitably want to run sort before you run uniq
And then you don't actually want uniq anyway since sort has a -u switch that removes duplicate lines.
- potatosareok 12y agoWhat if you want uniq -c? Any simple way to replicate that functionality better then...sort | uniq -c?
- ars 12y agoThen you run uniq -c (which I do all the time). But for the examples in the main article sort -u would be fine.