title: Last n words from a string in bash
body: <p>I have a string containing many (the total number varies) words, and I need to get last 10 of them. How do I do it? I'm looking at awk, grep and cut but nothing really comes to mind. </p>
  
  <p>An example (although it seems to me that the question is clear):</p>
  
  <pre><code>aaa bda fdkfj fds fsd ... dsad dsas dsad zrthd shshh
  </code></pre>
  
  <p>I want the last 10 words of this string.</p>
  
  <p>Again, the total number of words in the initial string isn't defined.</p>