fd --format
Format filesearch results. More information: https://manned.org/fd.
- Print only the filename:
fd --format "{/}"
- Print the parent directory:
fd --format "{//}"
- Print the file path without file extension:
fd --format "{.}"
- Print only the filename without extension:
fd --format "{/.}"
- Prepend a
{and append a}to the results:
fd --format "\{\{ {} \}\}"
- Prepend text to the results:
fd --format "{}"
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
