I have a range of numbered files (images) and I want to move them to subdirectory. https://superuser.com/questions/380338/move-a-range-of-numbered-files#= suggests that I use
mv IMG_{001-022}.jpg subdir
The problem is that considering that the number is a time stamp its not consecutive numbers. The above doesn't seem to work in my case.
Question is how would you do to the above in non-consecutive numbers.
Edit: Note in this particular case there are files numbered IMG_045.jpg for example. I only want any file that was between IMG_001-IMG_022