Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • That won't work if the script contains non-ASCII characters. file reports the encoding, so a python script can be reported as a /usr/bin/python script, UTF-8 Unicode text executable. find ... | xargs file -b | grep -v '^ELF' could work better to spot the non-binaries.
    – xenoid
    Commented Jul 12, 2017 at 19:34