Skip to content

Instantly share code, notes, and snippets.

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 diogodanielsoaresferreira/65cd6c6394607e422a17b7645d01496d to your computer and use it in GitHub Desktop.
Save diogodanielsoaresferreira/65cd6c6394607e422a17b7645d01496d to your computer and use it in GitHub Desktop.
Calculate most common combinations using Unix commands
tail -n +1 Dataset-Unicauca-Version2-87Atts.csv
| awk -F',' '{print $2, $3, $4, $5}'
| sort
| uniq -c
| sort -nr
| head -n 20
> "processed_data_bash.tsv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment