Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

what is .. (two dots) in jq filter

$
0
0

given my input file: kind.json

[  {"kind": "ConfigMap1"  },  {"kind": "ConfigMap1"  },  {"kind": "ConfigMap2"  },  {"kind": "ConfigMap'4"  },  {"kind": "ConfigMap\"6"  }]

and on using jq command jq .. kind.json, i am seeing unexpected output. You can see that here -> https://jqplay.org/s/pTe-CtdXV1.

[  {"kind": "ConfigMap1"  },  {"kind": "ConfigMap1"  },  {"kind": "ConfigMap2"  },  {"kind": "ConfigMap'4"  },  {"kind": "ConfigMap\"6"  }]{"kind": "ConfigMap1"}"ConfigMap1"{"kind": "ConfigMap1"}"ConfigMap1"{"kind": "ConfigMap2"}"ConfigMap2"{"kind": "ConfigMap'4"}"ConfigMap'4"{"kind": "ConfigMap\"6"}"ConfigMap\"6"

Just wondering what the two dots mean here and what jq is doing here. Any help and explanation will be greatly appriciated.


Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>