Skip to main content
2 of 3
deleted 170 characters in body
terdon
  • 252.2k
  • 69
  • 480
  • 718

Find's -regex matches the entire path, not just the file name. That means that to find /path/to/foo, you need -regex '.*foo', and not just foo`. You want something like:

find  . -E -regex ".*[a-z][A-Z].*"

It would be much simpler to use globs and the simpler -name as suggested by SYN, however, instead of regexes.

terdon
  • 252.2k
  • 69
  • 480
  • 718