DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
How do I group values to an array for the same field value in jq
jq 'group_by(.src_ip) | map({src_ip: .[0].src_ip, sessions: map(.session)})'
PREVIOUS
NEXT
Tagged:
#How
#I
#group
#values
#array
#field
#jq
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit