title: Find multiple occurences of same string
body: <p>In a range of files, I want to see which line has atleast 4 times the same occurence of the same word. This word can be any word.</p>
  <p>So
  input:</p>
  <pre>
  a a a b b e e e
  o o o o p p p y y y
  w r r r u u i i o o r
  x x o o i i p p z z y y
  </pre>
  <p>Output:</p>
  <pre>
  <b>o o o o</b> p p p y y y
  w <b>r r r</b> u u i i o o <b>r</b>
  </pre>
  <p>What I have tried at the moment is to make sure that sentences are put separate, ready to be processed basically.</p>
  <pre><code>cat * |
      tr '\n' ' '|
      sed 's/[.!?;&quot;]/ &amp; /g' |
      sed 's/[.!?]/&amp;\n/g'|
      grep -E -w '\b([[:alnum:]]*)\{4*\}\b'
  </code></pre>
  <p>But my grep doesn't get anything, so how do I get that Grep only prints out all sentences which contain a word which occurs atleast 4 times in it?</p>