title: What is the command to get groupid of a group name in mac or linux?
body: <p>How can I get group id of a group in mac os or linux?</p>
  
  <p>ie.,  Command GroupName  ==> should return the groupid</p>
  
  <p>Eg:   </p>
  
  <pre><code>Command staff   ==&gt;   20
  </code></pre>