Last active
March 31, 2016 11:35
-
-
Save traedamatic/4213a2e784b2e7a4a7eb9835a7676e3d to your computer and use it in GitHub Desktop.
shell script count lines with sort
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
# redirect input in gawk and count unique lines | |
SOMETHING > gawk '{print $1}' | sort | uniq -c | sort -bgr > counted_lines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment