Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jq '.FiberSwitchPorts[]| { "port": .PortName?, "conn": .ConnectionFiberlines?[] , "mlayer": .Fiberlines?[]} ' | jq -s ' group_by(.port) | .[]| { port : .[0].port, conn: [
- .[].conn],mlayer: [.[].mlayer] } '
Add Comment
Please, Sign In to add comment