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