SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming there is one number per line:
sort <file> | uniq -c
You can use the more verbose --count flag too with the GNU version, e.g., on Linux:
--count
sort <file> | uniq --count