title: "sed" command to remove a line that match an exact string on first word
body: <p>I'm working in a small bash script. I need to remove an entire line that match an exact word in only the first word of the line.</p>
  
  <p>That's how the text file looks:</p>
  
  <pre><code>John is a dumb
  Maria is awesome
  Toni and Maria are funny
  </code></pre>
  
  <p>I want to remove the just the second line.</p>
  
  <p>Right now, I can match the exact word "maria" but it removes the third line too:</p>
  
  <pre><code>sed -i "/\b\(maria\)\b/d" file.txt
  </code></pre>
  
  <p>How to specify just the first word?</p>
  
  <p>Thanks!</p>