Re: Problems when specifying -maxdepth

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
On 8/20/21 7:44 PM, hancooper via Bug reports for the GNU find utilities wrote:
> find ./01cuneus -type d -maxdepth 2
> find: warning: you have specified the -maxdepth option after a non-option argument -type, \
> but options are not positional (-maxdepth affects tests specified before it as well as \
> those specified after it). Please specify options before other arguments.

Move -maxpdepth before the tests/actions:

$ find ./01cuneus -maxdepth 2 -type d

Have a mice day,
Berny
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.