I would like to list multiple files in a range. My files structure is PR181111???.s01 or PR189999???.s01 so the variable I have to use are 1111 and 9999. This can be an operation to do several times a day with new files, hence is not a single-time listing.
In a script I tried to use (just an example)
ls *[0987-0991]*.s01
my output
PR180985026.s01 PR180987023.s01 PR180991022.s01
PR180987021.s01 PR180987025.s01 PR180991024.s01
Could someone explain me why I get the first file (PR180985026.s01)?
The first file is outside the range I specified, therefore I am doing something wrong.
[...]
brackets work - they are sets (or collation sequences) of single characters