I have a directory called basedir; inside that directory are subdirectories which contain pictures - IMGXXXX.jpg or picXXXX.JPG (all from various camera sources). I'm trying to create a script that going to surf these directories and copy out the images to an output folder... I need this because I want all the images in one directory, because some images have the same name so they get over written.
something like...
cp -r basedir/ outputdir/[1-100].jpg
But I have no clue how to use the [x-x]; It's in a man page, but I don't know where, so if anybody can point me in the right direction and explain how these brackets function will be great.


