title: Retrieve "TODO" lines from a text file
body: <p>I'm editing a project in GEdit (text editor). When I type <code>TODO</code> it highlights it yellow for future reference. I have quite a few of these <code>TODO</code>s around the place.</p>
  
  <p>To make it clearer what I need to do, can anyone show me a way to extract any <code>TODO</code> lines from a bunch of files and put them into one text file called, for example, <code>TODOs.txt</code>?</p>
  
  <p>I have something like this:</p>
  
  <p><code>// TODO: Error handling.</code></p>
  
  <p>And want it to be put in a file like this:</p>
  
  <p><code>* &lt;file name&gt; &lt;line number&gt; Error handling</code></p>
  
  <p>A Linux application (CLI, GUI don't mind) would be preferable, but a regex script or another method someone could come up with would be cool.</p>