ãã¨ãã°æ¬çªã®ãã°ããç¹å®ã®ãã¼ã ããã¼ã¿ãå¤ãã¦ï¼ãã¹ã¯ãã¦ï¼ä¿åãããã¿ãããªã¨ã æ®éã«ããã°sedãawkã§é å¼µã£ã¦ã§ãããã§ããjqã§ããã°ãµã¯ãã¨ã§ãã¦ãã¾ãã¾ã ä»åä¸è¨ã®ãµã³ãã«jsonãç¨æãã¾ãã sample.json { "hoge": "fuga", "foo": "bar", "baz": [ 1,2,3 ] } |=æ¼ç®åã§ç¹å®ã®ãã¼ã®å¤ãæ¸ãæãã¦åºåã§ãã¾ã $ cat hoge.json| jq '.foo|="replaced"' { "hoge": "fuga", "foo": "replaced", "baz": [ 1, 2, 3 ] } ä¸ã ãã ã¨ç¹å®ã®ãã¼ãç¡ãã£ãå ´å追å ããã¦ãã¾ãã®ã§ãªããã°ãã®ã¾ã¾ãããã°ä¸æ¸ãããããªããã¨ãå¤ããã¨æãã¾ã é£ç¶ãããã¼ã¿ã®ä¸ã§å¤ãããå ´åã®ã¿å¦çãããå ´åã¯ifã§å²ãã°OKã§ã # 対象ãã¼ã«ãã¼
{{#tags}}- {{label}}
{{/tags}}