Skip to content

Instantly share code, notes, and snippets.

@dlebech
Created May 4, 2017 10:21
Show Gist options
  • Save dlebech/ed8873324fc24abf7c1fda5ba8c9db66 to your computer and use it in GitHub Desktop.
Save dlebech/ed8873324fc24abf7c1fda5ba8c9db66 to your computer and use it in GitHub Desktop.
Command-line notes
# Convert a unix timestamp in millisconds in a column of a CSV to a date
cat thefile.csv | perl -MPOSIX -pe 's/(^\d+),/strftime("%F,", localtime($1\/1000))/ge'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment