man find
:
-f path:将路径添加到将递归到的路径列表中。当路径以否则会被解释为表达式的字符(即“!”)开头时,这很有用。, “(“ 和 ”-”。
但为什么
find ./test-folder -type f -name '*.txt'
有效,而
find -f ./test-folder -type f -name '*.txt'
不起作用?
那么错误是什么?
./test-folder: illegal option -- t
usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]