Quote:
|
Originally Posted by Tyveleyn
Hi,
The range specifier [min-max] applies to one character only. So [20-50] is not valid because there's no single character that represents '20' or '50'. [2-5] would be valid for the range file.2, file.3, file.4, file.5 but that's only part of the extension looked for. Thus the specifier '[2-5][0-9]' comes close but also returns the file.51, ...file.59 range so I would define the wanted range like this:
Code:
grep 'keyword' file.[2-4][0-9] file.50
Regards
|
i see !!!!
thanks for the help! have been figuring out for a long time!
i got another answer too
--------------------------------------
grep 'pattern' file.@([234][0-9]|50)
--------------------------------------
well, it's doing the same thing anyway
thanks !