Find in the current working directory all directories that have either a .sh or .pl file and list the contents of those directories.
find $(pwd) -type d \( -name "*.sh" -or -name "*.pl" \) -exec ls {} \;