Count and sort
Lesson 12 of 20 · Term.Micro
wc, sort and uniq turn a list into an answer.
wc prints lines, words and bytes. Most of the time you want just lines: wc -l.
Check yourself
Why must you sort before uniq -c?
Do it in the browser: a real the Linux terminal tool, a short mission and instant feedback. No install.
Start this lesson — free