title: How can I grep for a string that begins with a dash/hyphen?
body: <p>I want to grep for the string that starts with a dash/hyphen, like <code>-X</code>, in a file, but it's confusing this as a command line argument. </p>
  
  <p>I've tried:</p>
  
  <pre><code>grep "-X"
  grep \-X
  grep '-X'
  </code></pre>