Created
March 9, 2017 04:16
-
-
Save comoc/d20474dc1c59bd2419fd07adb660e02a to your computer and use it in GitHub Desktop.
findした結果をまとめてjqコマンドで処理する ref: http://qiita.com/comocc/items/0337c942988c3031194e
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
| find . -name "*.json" -exec sh -c "jq < {}" \; |
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
| [{"string": "abc", "number": 123}, {"string": "def", "number": 456}] |
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
| find . -name "*.json" -exec sh -c "jq '.[].string' < {}" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment