title: How to use an awk variable inside an awk variable?
body: <p>So, I have a code like this:</p>
  
  <pre><code>#!/bin/bash
  awk -v ip="10.0.7.1" -v no="8" -v line='#BalancerMember "ajp://" ip ":8009" route=node" no " loadfactor=1 keepalive=on ttl=300 max=400 timeout=300 retry=60' '
  /ProxySet lbmethod=byrequests/{
  print "             " line ORS $0
  next
  }
  1' /tmp/000-site.conf &gt; /tmp/000-site.conf.tmp &amp;&amp; mv /tmp/000-site.conf.tmp /tmp/000-site.conf
  </code></pre>
  
  <p>So, I'm unable to use the awk variable <code>ip</code> and <code>no</code> inside an awk variable <code>line</code>.</p>