Skip to content

Add -printf formatting like GNU find #533

@avielsh

Description

@avielsh

Hi
Please add a -printf like feature to fd.
Currently, to get the file information I'm running:
fd --changed-within=10days -x ls -dl --time-style=long-iso "{}"
Which spawns ls for every result.

This is actually much slower than running:
find . -mtime 10 -printf "%TY-%Tm-%Td %TH:%TM %p\n"
(For example)

Test dataset is around 20,000 files. fd is running for ~21 seconds, find for ~10.
Of course when more results are found, fd method would become slower.
Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions