find ${*-.} -type f -print0 | xargs -0 file | awk '{ $1=NULL; t[$0]++; } END { for (i in t) printf("%d\t%s\n",t[i],i); }' | sort -nr
file
$1=NULL