Timeline for How can I find only the executable files under a certain directory in Linux?
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2017 at 19:34 | comment | added | xenoid |
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.
|
|
Jul 9, 2017 at 13:16 | history | edited | Richard Braganza | CC BY-SA 3.0 |
added 114 characters in body
|
Jul 9, 2017 at 13:15 | review | Low quality posts | |||
Jul 9, 2017 at 15:36 | |||||
Jul 9, 2017 at 12:52 | history | edited | Richard Braganza | CC BY-SA 3.0 |
Wanted to include non xargs version and to explain what I actually used it for
|
Jul 9, 2017 at 12:48 | review | Late answers | |||
Jul 9, 2017 at 13:01 | |||||
Jul 9, 2017 at 12:38 | review | First posts | |||
Jul 9, 2017 at 13:12 | |||||
Jul 9, 2017 at 12:31 | history | answered | Richard Braganza | CC BY-SA 3.0 |