`plocate` does not have an option which `mlocate` [1] has:

>  -A, --all
>    Print only names which match all non-option arguments, not
>    those matching one or more non-option arguments.

The same could be achieved using extended regular expressions i.e.
`--regex`, but it's cumbersome.

Say I want to find out all documents about Fedora IoT security. Compare:

    mlocate -i -A fedora iot security

with:

    plocate -i --regex 
'fedora.*iot.*security|fedora.*security.*iot|iot.*fedora.*security|iot.*security.*fedora|security.*fedora.*iot|security.*iot.*fedora'

This is needed because the order of the words is not fixed; results
could include for example `Security/Fedora IoT.pdf` or
`Fedora/IoT/Security.pdf`.

Speaking of security, `systemd-analyze security plocate-updatedb.service`
suggests a couple of improvements which could be made, e.g.
LockPersonality or ProtectClock.



[1]: https://man7.org/linux/man-pages/man1/locate.1.html
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to