Skip to content

Instantly share code, notes, and snippets.

@murachi1208
Created September 4, 2017 09:22
Show Gist options
  • Save murachi1208/6e547f1ded5491030420720842ee0990 to your computer and use it in GitHub Desktop.
Save murachi1208/6e547f1ded5491030420720842ee0990 to your computer and use it in GitHub Desktop.
jq でsubstrみたいに文字列を取得する ref: http://qiita.com/murachi1208/items/7ca004df9e0945cc2541
jq -r '[ .dateTime[:4] + "/" + .dateTime[4:6] + "/" + .dateTime[6:8], .tempoCode ] | @tsv '
2017/09/04 Y123456
{
"dateTime": "20170904152510701",
"tempoCode": "Y123456"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment