Quantcast
Viewing all articles
Browse latest Browse all 520

How to make multiple assignment of field values in jq?

I have jq command like this:

jq --arg ts "$TS"'.Date = $ts, .Marker.Date = $ts, .InfoFromTerminator.Timestamp = $ts'

but it appears to only replace the last item keeping the previous two as is. How do I rewrite the query to replace for all 3 parameters?


Viewing all articles
Browse latest Browse all 520

Trending Articles



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