title: Bash sed - find hashtags in string
body: <p>Based on <a href="https://stackoverflow.com/questions/27197327/linux-sed-delete-words-do-not-start-with-a-specific-character">this post</a>, I have tried to come up with a command to find all hashtags words (words starting by #) in a quite complicated string:</p>
  
  <pre><code>echo "Le #cerveau d’#Einstein n’est « #Ordre des #Mopses\" » pas" | sed -e 's/^/ /g' -e 's/ [^#][^ ]*//g' -e 's/^ *//g'
  </code></pre>
  
  <p>Unfortunately the output is:</p>
  
  <pre><code>#cerveau #Mopses"
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>#cerveau #Einstein #Ordre #Mopses
  </code></pre>
  
  <p>What should be the correct command?</p>