title: Editing the sudo file in a shell script
body: <p>I want to edit the sudoers files in Solaris by removing <code>#</code> or adding <code>#</code> in it on a specific line, so how can I write the script for this? My sudoer sample file given below:</p>
  
  <pre><code># The following line allows su without options/arguments and sux to user root
  Cmnd_Alias SU_ROOT = /usr/bin/su "",\
                       /usr/local/bin/sux - root
  
  # Defaults specification
  Defaults:%saptb !authenticate
  
  # User privilege specification
  %saptb  ALL=(root)SU_SAP
  #Uncomment this line when SAP requires root access
  %saptb ALL=(root)SU_ROOT
  ##### END SAP-TB specific  ######
  #
  #
  #Tivoli ITM Tools Team Sudo Right
  #
  %cgtools        ALL=(root)       NOPASSWD: /opt/IBM/ITM/bin/*
  </code></pre>
  
  <hr>
  
  <p>In this above sudoers file i want add <code>#</code> before the only line of <code>%saptb ALL=(root)SU_ROOT</code> </p>