findのprimaries
All primaries which take a numeric argument allow the number to be preceded by a plus sign (+) or a minus sign (-).
-type t
bcdflps
f: regular file
d: directory
-name pattern
Special shell pattern matching characters (['', ]'', *'', and ?'') may be used as part of pattern.
例:rstファイル -name "*.rst"
expression -or expression
例:rstファイルまたはrst.txtファイル -name "*.rst" -or -name "*.rst.txt"
-not expression
! expression でも同じ
例:cut-contentsをファイル名に含まない -not -name "*cut-contents.*"
-path pattern
例:検索先のうちnot_used以下 -path "検索先/not_used/*
-notを使って、検索しないとする想定
Special shell pattern matching characters (['', ]'', *'', and ?'') may be used as part of pattern.
-print
This primary always evaluates to true. It prints the pathname of the current file to standard output.