I have sequential files like this. I'm trying to write a bash shell script to list all of them. These files are part of mysql to do database point in time recovery
bin.000001
.
.
.
bin.000999
I have something like this but it won't display bin.000010 and up. If anyone has a solution pls do let me know.
A bit difficult to believe your pattern matched bin.000999 as it is for the last two digits only, one per square bracket pattern. First pattern will match 0 and 1-9, second 1, 0-9, 9, and 9 (some redundancy, i'd say).