title: Bash grep - find exact wording in the line
body: <p>I have a question using grep / egrep in bash</p>
  
  <p>Imagine I have the following lines in the file:</p>
  
  <pre><code>Good day
  Hello World 23 a
  Hi Hello World
  Hello World
  sdHello World
  Hello Worldsss
  </code></pre>
  
  <p>The problem is to find the line with exact match of string: "Hello World"</p>
  
  <p>I tried to use</p>
  
  <pre><code>grep -n "^Hello World$" file.txt
  </code></pre>
  
  <p>but it doesn't work giving an empty result</p>