I can't understand what "-f" option to find command on NetBSD mean.
Manual: https://man.netbsd.org/find.1 says
> -f Specifies a file hierarchy for find to traverse. File hierarchies may also be specified as the operands immediately following the options.
Usage:
> find [-H | -L | -P] [-dEhsXx] -f file [file ...] [expression]
>find [-H | -L | -P] [-dEhsXx] file [file ...] [expression]
I would expect the two following calls to be equivalent:
home# find ./ -name "*c"
./1.c
home# find -f ./ -name "*c"
find: unknown option -- n
find: unknown option -- a
find: unknown option -- m
find: unknown option -- e
./
./1.c
find: *c: No such file or directory
Instead to make second equivalent I have to run
home# find -f ./ -- -name "*c"
./1.c
Am I missing something?
Asked by SekstusEmpiryk
(135 rep)
Oct 28, 2024, 04:22 PM
Last activity: Nov 4, 2024, 04:12 PM
Last activity: Nov 4, 2024, 04:12 PM