ãã¨ãã° {"users":[{"id":1,"name":"taro"},{"id":2,"name":"hanako"}]} ã®ãããªJSONããã£ãã¨ãã¦ã 1 taro 2 hanako ã®ããã«æ´å½¢ãã¦è¡¨ç¤ºããããã£ã çµè«ï¼2020å¹´8æ30æ¥è¿½è¨ï¼ jqåä½ã§ã§ãããã³ã¡ã³ããã¦ãã ãã£ãæ¹ãããã¨ããããã¾ã cat test.json| jq '.users[] | (.id|tostring) + " " + .name' -r jqã³ãã³ãå ã§ãã¤ãã®ããã«ç¹ããæ¹æ³ããã£ããidã§tostringãã¦ããã®ã¯JSONã®æ°å¤åã ã¨jqãèªèãã¦ãã¾ããããå®éã¤ããªã㨠jq: error (at <stdin>:1): number (1) and string (" ") cannot be added ã¨ã¨ã©ã¼ã«ãªãã 以ä¸éå»ã®æ¯ãè¨ çµè« jqåä½ã§ã¯ã§ããª
{{#tags}}- {{label}}
{{/tags}}