I am sure there is an easier way to do it but...
index=1155 while [ $index -le 1182 ]; do let index=$index+1 cp 'dcp_'$index'.jpg' <dest> done
Will work
On Sunday 29 May 2005 10:18 pm, Chris Glover wrote:
Hi,
Here's one for you...
If I have a range of files named dcp_1100.jpg - dcp_1189.jpg and I only want to copy 1156-1183, how do I do it.
cp dcp_11[56-83].jpg <dest> does not work, but cp dcp_115[6-9].jpg <dest> does.
What am I missing? There's got to be an easier way than typing it out serveral times for the range needed?
Thanks
Chris