title: Issue when using find and ls command and wildcard operators in terminal mac os x
body: <p>First of all thank you to everyone on here you have already helped me countless times. Secondly be kind I'm a total noob with these things and spent the last 2 hours trying to find an answer.</p>
  <p>Here is my issue:</p>
  <p>I have a large amount of media files that have automatically been resized for web (i.e. 1920x1080 resolution down to 960x540 -&gt; 480x270 etc.). These resolutions have been added to the filename. I need to move that media library to a different web server but need to avoid to copy all these low res duplicates.</p>
  <p>I have found this:
  <code>sudo find DIRECTORY_PATH -name &quot;*filename*&quot; -delete</code></p>
  <p>which lets me specify the resolution of that specific file and then it will delete all the instances with that resolution. The issue is that specifically with image files they are all different resolutions and as they are being resized according to their original aspect ratio i would need to write this command a thousand times.</p>
  <p>What I would like to do is specifiy a numeric range before the resolution marker i.e.:</p>
  <p><code>sudo find DIRECTORY -name &quot;*[0-2000]x[0-2000]*&quot; -delete</code></p>
  <p>However that doesn't seem to work. I feel the answer is very simply and I apologise for wasting your time but I can't make it work. I have tried all kinds of different variations of this.</p>
  <p>I managed to list the files using <code>ls</code></p>
  <p><code>ls *[0-3000]x*</code></p>
  <p>Thanks in advance for your help!</p>