Compare folders and find missing files
Karl Auer
kauer at biplane.com.au
Wed Mar 25 10:27:04 UTC 2020
> is there a way to get "find" to return only when a file is NOT found?
Read "man find". Look under "OPERATORS" and check out the "!" operator.
It inverts the sense of a test.
So this:
find -name "xxx*" -print
will print all filenames matching "xxx*", but this
find ! -name "xxx*" -print
will print all filenames NOT matching "xxx*".
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
More information about the ubuntu-users
mailing list