title: How do multiple gsub() calls work together one after another in awk?
body: <p>Can anyone please help me interpret below awk command?  I am confused with what's the multiple gsub functions doing here.</p>
  
  <pre><code>cat vslist.txt | awk '\''/:/{gsub(/ /, \"\", $0);gsub(/{/, \",\", $0);printf $s,$1}'\''");printf "\n"}' 
  </code></pre>
  
  <p><strong>vslist.txt</strong></p>
  
  <pre><code>ltm pool PL_Axxxxx_POOL {
      members {
          ND_APIxxxxxx:7807 {
              address 12.7.21.6
              app-service none
              connection-limit 0
              description none
              dynamic-ratio 1
  
          ND_APIxxxxxx:7809 {
              address 12.7.21.5
              app-service none
              connection-limit 0
              description none
              dynamic-ratio 1
  
          ND_APIxxxxxx:7808 {
              address 12.7.21.9
              app-service none
              connection-limit 0
              description none
              dynamic-ratio 1
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>    ND_APIxxxxxx:7807
      ND_APIxxxxxx:7809
      ND_APIxxxxxx:7808
  </code></pre>