title: Exclude some patterns or binary files using sed / awk
body: <p>I have patterns in a file something like this   </p>
  
  <pre><code>parent/child
  parent/child/child2
  neighbor/child
  neighbor/child/child3
  </code></pre>
  
  <p>I want to exclude all <code>neighbor</code> and its child using only sed and awk.</p>
  
  <p>Output should be:</p>
  
  <pre><code>parent/child
  parent/child/child2
  </code></pre>