Skip to content

Instantly share code, notes, and snippets.

@FranjoIM
Created October 14, 2021 19:35
Show Gist options
  • Save FranjoIM/2279227b1cdc5b6e512913256df85fff to your computer and use it in GitHub Desktop.
Save FranjoIM/2279227b1cdc5b6e512913256df85fff to your computer and use it in GitHub Desktop.
This gist takes a desired file, extracts desired column, and returns a list of unique values with counts.
awk -F ',' '{print $<column_number>}' <file> | sort | uniq -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment