So. I have to grep a string in a dir that contains files with same name except for hours:
I'm trying to grep a single word 'ABC' in just files of hours between 18 and 23.
I've tried with
grep 'ABC' filename_[18-19-20-21-22-23]*WORD*.log but it is expanded as grep on files from 05 to 23 and I don't know why.
How can I achieve this?