I'm trying to find all files for which there name starts with a capital letter. I have tried using the following command:
find . -type f -regex '.*\/[A-Z][^/]*'
It's finding paths with only lowercase letters. The following works:
find . -type f -regex '.*\/[ABCDEFGHIJKLMNOPQRSTUVWXYZ][^/]*'
find . -type f | grep '.*\/[A-Z][^/]*$'
I've tried all the different options for
regextype, with the same result.
find include lowercase letters in
[A-Z]? I thought the regex for that was
[a-zA-Z]. Is there any way to specify a range of only uppercase letters in