title: Use sed to edit crontab
body: <p>I am writing a sed command that should uncomment an entry in crontab. Is there a better way to do this? The first option that comes to mind is sed.</p>
  
  <p>Example:</p>
  
  <pre><code>crontab -l
  
  # 5 * * * 3 bash test.sh
  </code></pre>
  
  <p>The sed command should uncomment this entry. This is what I have now.</p>
  
  <pre><code>sed "s#\# 5 * * * 3 bash test.sh#5 * * * 3 bash test.sh#"
  </code></pre>
  
  <p>Obviously this sed command doesn't do the task.</p>
  
  <p>ps:the sed command will eventually make its way into a script.</p>