Created
September 14, 2011 07:51
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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