Skip to content

Instantly share code, notes, and snippets.

@fabienhinault
Created October 26, 2017 16:28
Show Gist options
  • Save fabienhinault/e95f26112947d4b5c26166f771c8d83d to your computer and use it in GitHub Desktop.
Save fabienhinault/e95f26112947d4b5c26166f771c8d83d to your computer and use it in GitHub Desktop.
jq request for timestamps
jq 'def thousandthToDate: . / 1000 | todate; walk(if type == "object" and has("dateControle") then .dateControle |= tostring + " " + thousandthToDate else . end)' controle.json
@fabienhinault
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment