title: How can I extract just the formatted date fields using sed or grep?
body: <p>I need a grep or sed statement that would only take out the dates from this statement:</p>
  
  <pre><code>echo 'asdfdsfa asdfs 12-Dec-13 asdasd asdf 11-Jan-12 asdasd' 
  </code></pre>
  
  <p>So answer should be something like this:</p>
  
  <pre><code>12-Dec-13 11-Jan-12
  </code></pre>
  
  <p>I have gotten far enough to get <code>12-Dec-13 asdasd asdf 11-Jan-12</code>, but I cant remove the content between the dates. Is it possible to use a sed statement to keep the first word and last word using space to show which is the last word? The result should remain the same.</p>