gfind ~ ! -readable -prune -o -type f -name "*.tex"
!is about Negation of a primary; the unary NOT operator.
-readableTODO this does not seem to be POSIX
-pruneis about The primary shall always evaluate as true; it shall cause find not to descend the current pathname if it is a directory. If the -depth primary is specified, the -prune primary shall have no effect.
-ois about Alternation of primaries; the OR operator. The second expression shall not be evaluated if the first expression is true. That is if not, then this.
-typeabout type, here file
-nameabout filename, here
gfind: paths must precede expression: type Usage: gfind [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]
-perm 0744 instead of
-readable but not sure if it is equivalent
gfind ~ ! -perm 0744 -prune -o -type f -name "*.tex"
/Users/masi. Expected output: list of .tex files.
How can you set permissions of find correctly for readable?