I have a bunch of directories with numerical names, betwen 1 and 1,500 and I wanted to use the find
command to find only these that are in range of 1,250 and 1,500, this regular expression should do that: [1][2-5][0-9][0-9]
so Itried this command:
find . -regextype sed -regex "[1][2-5][0-9][0-9]"
But find
finds nothing, am I doing something wrong?
Best Answer
From
man 1 find
[emphasis mine]:So this will find something:
Note
[1][2-5][0-9][0-9]
you used covers the range 1200-1599.[1]
can be just1
as in my example.