Skip to content

Instantly share code, notes, and snippets.

@fogonthedowns
Created February 13, 2023 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fogonthedowns/64b51103a2aed724d5120f98dd045f01 to your computer and use it in GitHub Desktop.
Save fogonthedowns/64b51103a2aed724d5120f98dd045f01 to your computer and use it in GitHub Desktop.
use awk to print the first column, then sort then count repeated lines
cat .file | awk -F "," '{ print $1 }' |sort| uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment