Created
July 27, 2020 16:36
-
-
Save froi/43402c62f1748c8713cd9f9659458d2e to your computer and use it in GitHub Desktop.
Shell alias to find binary file extensions.
This file contains 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
alias findbin='find . -type f -not -path "./.git/*" -exec perl -MFile::Basename -e '\''print (-T $_ ? "" : (fileparse ($_, qr/\.[^.]*/))[2] . "\n" ) for @ARGV'\'' {} + | sort | uniq' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks @Chocrates for this one liner. 🎉