Skip to content

Instantly share code, notes, and snippets.

@riivo
Created September 14, 2011 07:51
Show Gist options
  • Select an option

  • Save riivo/1216063 to your computer and use it in GitHub Desktop.

Select an option

Save riivo/1216063 to your computer and use it in GitHub Desktop.
Shell snippet: Extract timestamp from file, convert to human readable format and count unique dates
head out1.log | awk -F';' '{print "@" $2}' | xargs -L 1 date +"%m-%Y" -d | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment