Created
May 4, 2017 10:21
-
-
Save dlebech/ed8873324fc24abf7c1fda5ba8c9db66 to your computer and use it in GitHub Desktop.
Command-line notes
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
# 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