Is there any way to do a partial (wildcard) search for a password from my iCloud keychain or Chrome via shell?
E.g., given "foo" I would like to find all keychain items (of any kind, including "Web form password" and "Internet password") where the URL ("Where") or "Name" or "Account" contains "foo".
I have tried security find-internet-password -l 'example.com'
and all kinds of variations but everything results in
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
Looked at Deleting password from Keychain in terminal and https://apple.stackexchange.com/a/378713/119271 (as suggested by https://apple.stackexchange.com/users/119271/allan) but they did not help.