title: Print entire line of key=value pairs if field in line meets condition - awk
body: <p>I have logs with data containing key=value pairs separated by space.</p>
  <pre><code>time=&quot;2022-08-10T16:03:23Z&quot; Event=xyz TxPkts=9 DroppedPkts=0 FailedRetries=0 SuccessRate=100.00
  </code></pre>
  <p>I want to print the entire line, where the SuccessRate is &lt; 99.</p>
  <p>So far I've used awk to figure out where the SuccessRate is &lt; 99, but it only prints the field itself, not the entire line:</p>
  <pre><code>awk '/SuccessRate/ {print $NF}' file | awk -F &quot;=&quot; '$2&lt;=99{print ;}'
  </code></pre>
  <p>Doing this prints out :</p>
  <pre><code>SuccessRate=98.64
  SuccessRate=0.00  
  SuccessRate=16.09
  ...
  </code></pre>
  <p>However, I want to print the entire line when the condition is met:</p>
  <pre><code>time=&quot;2022-08-10T16:03:23Z&quot; Event=xyz TxPkts=9 DroppedPkts=0 FailedRetries=0 SuccessRate=98.64
  time=&quot;2022-08-10T16:03:23Z&quot; Event=xyz TxPkts=9 DroppedPkts=0 FailedRetries=0 SuccessRate=0.00
  ...
  </code></pre>
  <p>Not sure how to do it without the extra pipe. Additionally, how would I do this if the field I was interested in was not the last field in the line? i.e. what if I wanted to print if <code>TxPkts</code> met a condition?</p>