title: SED or AWK to make url querystring readable
body: <p>I need to split a querystring to several unbounded amount of variables for debugging purposes:</p>
  
  <p>The output comes from tshark and the purpose is to live debug google analytics events. The output from tshark looks like this:</p>
  
  <pre><code>82.387501       hampus -&gt; domain.net 1261 GET /__utm.gif?utmwv=5.3.7&amp;utms=22&amp;utmn=1234&amp;utmhn=domain.com&amp;utmt=event&amp;utme=5(x*y*z%2Fstart%2Fklipp%2F166_SS%20example)(10)&amp;utmcs=UTF-8~ HTTP/1.1 
  </code></pre>
  
  <p>What i want is a more human readable version:</p>
  
  <pre><code>utmhn:  domain.com
  utmt:   event
  utme:   5(x*y*z/start/klipp/166_SS/example)(10)
  utmcs:  UTF-8
  </code></pre>
  
  <p>or even better:</p>
  
  <pre><code>utmhn:  domain.com
  utmt:   event
  utme:   5(
            x
            y
            z/start/klipp/166_SS/example
           )(10)
  utmcs:  UTF-8
  </code></pre>
  
  <p>But can't get my head around sed (or awk) for this purpose... </p>