In this answer, what is the use of -!
in find
?
Consider the following code:
find . -type l -! -exec test -e {} \; -print
This alternative seems to do the same exact thing:
find . -type l ! -exec test -e {} \; -print
It appears the -!
works like !
, meaning negation of the following expression. Which makes sense. But why not just !
then? I can't seem to find any documentation on such syntax.
find
). – Michael Homer Mar 08 '17 at 05:22find
in NetBSD – Fox Mar 08 '17 at 13:40