Fd: How to search for files based on a "whole-word" name

Created on 23 Nov 2020  路  3Comments  路  Source: sharkdp/fd

I just want to find sepolicy files like the image, not others, can fd do this ?
image

documentation question

Most helpful comment

fd '^selinux$'

All 3 comments

fd '^selinux$'

... or use a glob-based search:

fd -g selinux

I think it would be a good idea to add this example to the README. https://github.com/sharkdp/fd#tutorial

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dietr1ch picture Dietr1ch  路  3Comments

lespea picture lespea  路  4Comments

mwgkgk picture mwgkgk  路  3Comments

blueray453 picture blueray453  路  4Comments

kclevenger picture kclevenger  路  3Comments