title: How do I add a comment (#) in front of a line after a key word search match
body: <p>I have a crontab file contains many database names  such as </p>
  
  <pre><code>10 06 1 * *   script  DEVE_DB1 
  10 06 1 * *   script  TEST_DB1 
  10 06 1 * *   script  PROD_DB1 
  ....
  </code></pre>
  
  <p>I would like to add a comment, <code>#</code> , in front of <code>TEST_DB1</code> in the entire file so that my cron job will not run all <code>TEST_DB1</code> jobs.</p>
  
  <p>I found the following script on this site, 
  <code>sed -e '/TEST_DB1/, s/^/#/'</code></p>
  
  <p>but I get an error:</p>
  
  <p><code>sed: 0602-404 Function /TEST_DB1/, s/^/## / cannot be parsed.</code></p>
  
  <p>Any suggestions would be greatly appreciated.</p>