Skip to content

Instantly share code, notes, and snippets.

@froi
Created July 27, 2020 16:36
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 froi/43402c62f1748c8713cd9f9659458d2e to your computer and use it in GitHub Desktop.
Save froi/43402c62f1748c8713cd9f9659458d2e to your computer and use it in GitHub Desktop.
Shell alias to find binary file extensions.
alias findbin='find . -type f -not -path "./.git/*" -exec perl -MFile::Basename -e '\''print (-T $_ ? "" : (fileparse ($_, qr/\.[^.]*/))[2] . "\n" ) for @ARGV'\'' {} + | sort | uniq'
@froi
Copy link
Author

froi commented Jul 27, 2020

Thanks @Chocrates for this one liner. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment