I have a directory with image files foo_0.jpg
to foo_99.jpg
. I would like to copy files foo_0.jpg
through foo_54.jpg
.
Is this possible just using bash wildcards?
I am thinking something like cp foo_[0-54].jpg
but I know this selects 0-5
and 4
(right?)
Also, if it is not possible (or efficient) with just wildcards what would be a better way to do this?
Thank you.
I assume you want to copy these files to another directory:
cp -t target_directory foo_{0..54}.jpg