title: Avoid "Aborted (core dump)" error when using grep -Pe and regex to find images?
body: <p>I am writing a bash-script that should move all the generated versions of a picture to another folder, i.e. original-image.jpg should not be moved, but original-image-120x240.jpg and original-image-1920x1080.jpg should be moved.</p>
  
  <p>However, my script fails at this command:</p>
  
  <pre><code>find image-folder/ -type f | grep -Pe '-(\d{2,4})x(\d{2,4})\.(jpeg|jpg|png|gif)'
  </code></pre>
  
  <p>With</p>
  
  <pre><code>Aborted (core dumped)
  </code></pre>
  
  <p>What am I doing wrong here? What is the reason for the "Aborted (core dumped)"? Out of memory?</p>
  
  <p>Are there other ways to accomplish what I want, that would help me avoid this error?</p>
  
  <p>I am running this on CentOS.</p>