Unix – list all extensions under current directory + list all files that have specific extension
# list all files by extension:
find . -type f | perl -ne 'print $1 if m/\.([^.\/]+)$/' | sort -u
# get path of all files by extension
find . -iname '*.php'