Help with finding correct log files

Lets say i have files like the following format :-

R0001.log
R0002.log
...
...
R00011.log
upto R000n.log, there are also a lot of text files with different names

now how can i find these files with in a range, i can do "ls R000*.log" and it will show me all the R000*.log files but what if i want files between R0005 and R00010

I can also use find . -name R000*.log but then how can i use the range here...

Now, once i get those files, i want to copy only these files within this range...

Please help me getting this done... Thanks

ls -ltr R000[5-10].log

1 Like

Thanks man, and for copy i used cp R000[5-10].log /folder