title: regular expression inside a cURL call
body: <p>I have a cURL call like this:</p>
  
  <pre><code>curl --silent --max-filesize 500 --write-out "%{http_code}\t%{url_effective}\n" 'http://fmdl.filemaker.com/maint/107-85rel/fmpa_17.0.2.[200-210].dmg' -o /dev/null
  </code></pre>
  
  <p>This call generates a list of of URLs with the HTTP code (200 or 404 normally) like this:</p>
  
  <pre><code>404 http://fmdl.filemaker.com/maint/107-85rel/fmpa_17.0.2.203.dmg
  404 http://fmdl.filemaker.com/maint/107-85rel/fmpa_17.0.2.204.dmg
  200 http://fmdl.filemaker.com/maint/107-85rel/fmpa_17.0.2.205.dmg
  404 http://fmdl.filemaker.com/maint/107-85rel/fmpa_17.0.2.206.dmg
  </code></pre>
  
  <p>The only valid URLs are the ones preceded by the 200 HTTP code, so I would like to put a regular expression in the cURL so that it only downloads the  lines that start with 200</p>
  
  <p>Any ideas on how to do this without being a bash script?</p>
  
  <p>Thank you in advance</p>