Sample Header Ad - 728x90

NetBSD "-f" option in find

1 vote
1 answer
91 views
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