$ find . -regex ".*/[a-f0-9-]{36}.jpg" # Note that you need to specify .*/ in the beginning because find matches the whole path.