-
-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
print only filename #1037
Comments
Like you said, it's possible with $ fd -X printf '%s\n' {/} But you're right, it is slower than
However, I'm not sure what level of customizability is worth adding to
|
I like the idea of a format option that uses the same template syntax as exec |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Would the syntax be |
The latter, i think. |
My use-case for customizable output format is to find & print N last created/modified files:
|
Why such an obvious request is still not implemented? |
It's mostly implemented in #1043 (comment). The next step is benchmarking it, which I haven't gotten around to. Partly because I'm not confident in my benchmarking skills. |
What version of
fd
are you using?fd 8.4.0
to put it simply, i just want the filename .
eg. instead of
/home/user/file
i would likefile
.i know this is possible via
--exec
(personally i think it would be slower because it is executing a seperate binary of some sort.), but seeing howfind
has it usingprintf
or usingbasename
but isn't there a cleaner way? or rather a solution?The text was updated successfully, but these errors were encountered: