title: Search with grep discarding hyphen at the end
body: <p>I want to select lines in a file that start with some pattern and DON'T end with an hyphen ("-")</p>
  
  <p>I'm currently trying:</p>
  
  <pre><code>grep -v ".-" file | grep "^String"
  </code></pre>
  
  <p>It mostly works fine, but with the little exception that it "discards" any line that has any hyphen at any part, not only at the end, so, if i have a line with only the ending hyphen, it's fine, but if by chance, the line has another hyphen in the middle, it also discards it, even if it doesn't have one at the end.</p>
  
  <p>¿How can i set it to discard ONLY the lines with an hyphen at the end? I'm sure it's a little problem in the syntaxis, so, any help is welcome :) Thanks in advance!</p>