Created
December 14, 2012 19:00
-
-
Save danielnc/4287697 to your computer and use it in GitHub Desktop.
Parsers mongo ids to Dates
This file contains 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
cat users.in | cut -f1 | ruby -e "ARGF.each_line { |line|puts Time.at(line[0...8].to_i(16)).strftime(\"%Y%m%d\") }" | sort -r | uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment