Last active
October 25, 2016 08:25
-
-
Save marushu/37696dafc0105a0e2e0a06f2409db73c to your computer and use it in GitHub Desktop.
jqで配列の数を取得
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
#!/bin/sh | |
# Count returned json array length. | |
# --graboff is for [] parameter. | |
curl --globoff https://private.hibou-web.com/wp-json/wp/v2/posts?filter[posts_per_page]=5 | jq length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment