Skip to content

Instantly share code, notes, and snippets.

@mazuhl
Created December 21, 2010 16:39
Show Gist options
  • Save mazuhl/750184 to your computer and use it in GitHub Desktop.
Save mazuhl/750184 to your computer and use it in GitHub Desktop.
Print the first word from a file, get uniques, output everything except comment lines
awk '{print $1}' file.csv | sort | uniq | grep '^[^; ]' > output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment