Skip to content

Instantly share code, notes, and snippets.

@tommybutler
Created October 2, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommybutler/7887aab98f25397e64a7bda1cd9042d4 to your computer and use it in GitHub Desktop.
Save tommybutler/7887aab98f25397e64a7bda1cd9042d4 to your computer and use it in GitHub Desktop.
get unique list of file suffixes (types) in current directory tree, recursively
find . -type f | perl -nE '$_ =~ s/.*\///g ; $_ =~ m/.+\..+$/ && $_ =~ s/.*\./\./ && say $_' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment