https://github.com/osquery/osquery logo
#macos
Title
# macos
a

allister

10/03/2022, 1:50 PM
what does the
'c
kindof-suffix represent?
f

fritz

10/03/2022, 1:52 PM
'string'c
= case insensitive
mdfind syntax:
Copy code
&& = AND
 || = OR
 * = Wildcard symbol
 'string'c = Case insensitive (eg. 'StRiNg' == 'string'c)
 'string'd = Diacritical Mark Insensitive (eg. 'śtrîñg' == 'string'd)
you can also stack case and diacritical insensitivity
So:
Copy code
'StRîñg' == 'string'cd
though the diacritical marks are usually less of an issue unless dealing with a substantially international install-base
a

allister

10/03/2022, 2:13 PM
and I was thinking NSPredicate was hard to interact with, it makes sense mdfind would have this stuff but I swear I've never seen a reference cover it before