Skip to content

Instantly share code, notes, and snippets.

@mindreframer
Created October 24, 2010 22:13
Show Gist options
  • Save mindreframer/644073 to your computer and use it in GitHub Desktop.
Save mindreframer/644073 to your computer and use it in GitHub Desktop.
splitting a file by comma, printing uniq numerical sorted values
cat some_file.txt |grep -v GETT| awk '{split($0,array,",")} {print array[2]}'|sort -n |uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment