Created
October 26, 2017 16:28
-
-
Save fabienhinault/e95f26112947d4b5c26166f771c8d83d to your computer and use it in GitHub Desktop.
jq request for timestamps
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
| jq 'def thousandthToDate: . / 1000 | todate; walk(if type == "object" and has("dateControle") then .dateControle |= tostring + " " + thousandthToDate else . end)' controle.json |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.jq https://gist.github.com/fabienhinault/e52f12804e65de05ec96a181ff8a5966 is better