Created
November 15, 2022 09:47
-
-
Save andcam/55747f8a2ba5b3de2650b7ae27b6b793 to your computer and use it in GitHub Desktop.
sort and count lines in a text file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat file.txt | sort | uniq -c | sort -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment