title: How can I remove all text AFTER a word in bash, keeping the word
body: <p>So, if I have a .txt like this:</p>
  
  <pre><code>He.likes.coding
  She.likes.juice
  He.likes.coffee
  </code></pre>
  
  <p>It becomes:</p>
  
  <pre><code>He.likes
  She.likes
  He.likes
  </code></pre>
  
  <p>So it will keep the special text (.likes)</p>
  
  <p>If there is already a answer for this, I'm sorry, but I didn't find it. All the ones that I found deleted the .likes also.</p>