title: Replacing grep and sed with single awk command
body: <p>So I have this line of code that I have been trying to convert to just a single awk command, but have been unsuccessful so far (displays nothing). I am not the most experienced with <code>awk</code>, so I am still working on its uses. If someone could give me some guidance and point out what I am doing wrong it would be greatly appreciated. This one-line command will pull a list of all users, and remove all the unnecessary information around it to display just a list of names.</p>
  
  <pre><code>ipa group-show ipausers | grep "Member users: | sed "s/,//g" |
  sed "s/Member users: //g" | sort
  </code></pre>
  
  <p>I have tried a few different ways, but the latest I have tried is;</p>
  
  <pre><code>ipa group-show | awk '/Member users/ { sub ("Member users: ", "") }'
  </code></pre>
  
  <p>This displays nothing...</p>
  
  <p>From my understanding, awk is capable of searching, and removing excess text pretty easily, and would be a solid use case for what I am trying to accomplish. I just have not been able to accomplish what I am trying. Leads me to a couple questions... Is replacing both the <code>grep</code> and <code>sed</code> an ideal situation for <code>awk</code>, or should <code>grep</code> and <code>sed</code> be used in this case? And what am I doing wrong with <code>awk</code> (probably a lot I'm sure haha). </p>
  
  <p>Example text from <code>ipa group-show</code></p>
  
  <pre><code>Group name: ipausers
  Description: something something
  Member users: user1, user2, user3, user4, user5
  Member of group: something something
  </code></pre>
  
  <p>I would like to display:</p>
  
  <pre><code>user1 user2 user3 user4 user5
  </code></pre>