请教一下会 shell 处理 JSON 脚本的大佬
逻辑是这样的,我想判断每段 num_leechs
的值,如果大于 10,就返回 name
和 hash
的值,代码如下:
[{ "added_on": 1576120104, "hash": "2fcb75646c688975daa840dfe466d21bc64118de", "name": "Ad.Astra.2019", "num_leechs": 545 }, { "added_on": 1576120104, "hash": "5c04a056d6821792db902b22aesdf23r2cd23rd23", "name": "ABC", "num_leechs": 32 }, { "added_on": 1576120104, "hash": "dfgsdfg34tv34tg34g34g6547h547h4567g567h45", "name": "eGE", "num_leechs": 2 } ]