Re: Enhancement request for 'locate'
Bernhard Voelker <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hi Seamus,
On 2/13/24 22:02, Seamus de Mora wrote:
> Hello,
>
> I have a request for the 'locate' program:
thanks.
> I would like to see an option added that would add the modification
> time/date to the results (files found by locate). This would be
> similar (even identical) to
> the output of 'ls -l <filename>'.
It seems there's not much echo on this, and given that many distros have
switched to sisters like mlocate or plocate, adding this here does not
seem to be needed.
BTW: given there are many variants of 'ls' output formats, why not simply
use a little wrapper like this (with the ls(1) options of your choice)?
locate-ls() {
locate -0 "$@" | xargs -0 ls -ld
}
Have a nice day,
Berny