On linux, the default find command ((GNU findutils) 4.4.2 on my system) has an optional path parameter, which defaults to current directory (the common case). From man page:
find [-H] [-L] [-P] [-D debugopts] [-Olevel] [path...] [expression]
On OSX, find does not have an optional path parameter:
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
I find this quite annoying. Has anyone solved this issue with a clever command alias/shell function, or perhaps by installing a different version of find?
findalways required a path - it became optional in Linux but that is by no means standard. Typically you just type.for the path when searching from the current directory, e.g.find . -name foo.txt. – Paul R Jan 16 at 16:19