Alex Rivera | Logout

GNU find all executable files: Equivalent on OS X?

Asked 2012-08-25T04:38:39.497
15

I need to get a list of all things marked as executable on a filesystem. On linux, I would just do:

find . -executable -type f

But on OS X, find complains:

find: -executable: unknown primary or operator
Edit
Report

2 Answers

2

Or you can just install the GNU findutils from Homebrew and use gfind instead of find.

answered 2013-05-03T15:08:29.657
-5

There is no -executable for mac. If you want all of the .exe files, you could do:

find . -name "*.exe" -type f

answered 2012-08-25T04:45:39.353

Your Answer