Skip to content

Instantly share code, notes, and snippets.

@jl
Created January 21, 2014 22:03
Show Gist options
  • Save jl/8549354 to your computer and use it in GitHub Desktop.
Save jl/8549354 to your computer and use it in GitHub Desktop.
print signature of executable files; for example pipe to fgrep "Mach-O" or "ELF"
find $1 -type f -executable -not -name '*.js' -exec file {} \;
# non-gnu
# find $1 -type f -perm /111 -not -name '*.js' -exec file {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment