Created
October 15, 2012 12:56
-
-
Save napsternxg/3892322 to your computer and use it in GitHub Desktop.
Count all the number of times a line occurs in a file ignoring case
This file contains hidden or 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 sample | sort -f | uniq -ci | sort -n | sed -e 's/\([0-9]\{1,\}\)[ ]*\(.*\)/\2: \1/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment