小编har*_*ith的帖子

/usr/bin/jq:参数列表太长错误 bash

我想从较大的 swagger.json 文件内容中替换示例 json 中的值,但它太大了。

Error:
/usr/bin/jq: Argument list too long error bash 
Run Code Online (Sandbox Code Playgroud)

花了几天时间来解决这个问题,但无法在这里确定问题。这是示例 json 文件:

{
   "name": "",
   "description": "",
   "context": "",
   "version": "",
   "provider": "cbs",
   "apiDefinition": "",
   "wsdlUri": null,
   "responseCaching": "Disabled",
   "cacheTimeout": 300,
   "destinationStatsEnabled": false,
   "isDefaultVersion": true,
   "transport":    [
      "http",
      "https"
   ],
   "tags": ["PROVIDER_","MIFE"],
   "tiers": ["Unlimited","Default","Silver","Subscription","Gold","Premium","Bronze"],
   "maxTps":    {
      "sandbox": 5000,
      "production": 1000
   },
   "visibility": "PUBLIC",
   "visibleRoles": [],
   "endpointConfig": "",
   "endpointSecurity":    {
      "username": "user",
      "type": "basic",
      "password": "pass"
   },
   "gatewayEnvironments": "Production and Sandbox",
   "sequences": [],
   "subscriptionAvailability": null,
   "subscriptionAvailableTenants": [], …
Run Code Online (Sandbox Code Playgroud)

bash jq

8
推荐指数
1
解决办法
7650
查看次数

标签 统计

bash ×1

jq ×1