Skip to content

Instantly share code, notes, and snippets.

@danielnc
Created December 14, 2012 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielnc/4287697 to your computer and use it in GitHub Desktop.
Save danielnc/4287697 to your computer and use it in GitHub Desktop.
Parsers mongo ids to Dates
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