Created
October 2, 2019 14:01
-
-
Save tommybutler/7887aab98f25397e64a7bda1cd9042d4 to your computer and use it in GitHub Desktop.
get unique list of file suffixes (types) in current directory tree, recursively
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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