Y
Hacker News
new
|
ask
|
show
|
jobs
by
16s
5122 days ago
They are already unique and sorted.
sort -u combo_not.txt | wc -l 6458020
wc -l combo_not.txt 6458020
1 comments
biot
5122 days ago
I assume the first line you meant to pipe it through uniq afer the sort? Otherwise the only thing you've demonstrated is that sorting a file doesn't change its line count. :)
link
JoshTriplett
5122 days ago
"sort -u" means "sort and uniq".
link
biot
5122 days ago
Wow, I can't believe I was never aware of this. Thank you!
link