title: How to grep for a file extension
body: <p>I am currently trying to a make a script that would grep input to see if something is of a certain file type (zip for instance), although the text before the file type could be anything, so for instance</p>
  
  <pre><code>something.zip
  this.zip
  that.zip
  </code></pre>
  
  <p>would all fall under the category. I am trying to grep for these using a wildcard, and so far I have tried this</p>
  
  <pre><code>grep ".*.zip"
  </code></pre>
  
  <p>But whenever I do that, it will find the <code>.zip</code> files just fine, but it will still display output if there are additional characters after the <code>.zip</code> so for instance <code>.zippppppp</code> or <code>.zipdsjdskjc</code> would still be picked up by grep. Having said that, what should I do to prevent grep from displaying matches that have additional characters after the <code>.zip</code>? </p>