fork download
  1. #!/bin/bash
  2. awk 'BEGIN {print "groupId groupPath"} /groupId:/ { g = $2 } /groupPath:/ {$1 = g;print}'
  3.  
Success #stdin #stdout 0.01s 5300KB
stdin
OK:
groupId: 27
groupPath: My Organization\Management\xyz

groupId: 32
groupPath: My Organization\Management\Database Host\xyz
stdout
groupId   groupPath
27 My Organization\Management\xyz
32 My Organization\Management\Database Host\xyz