Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to search for files based on a "whole-word" name #692

Closed
Tracked by #695
longcp opened this issue Nov 23, 2020 · 3 comments
Closed
Tracked by #695

How to search for files based on a "whole-word" name #692

longcp opened this issue Nov 23, 2020 · 3 comments

Comments

@longcp
Copy link

longcp commented Nov 23, 2020

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

@tavianator
Copy link
Collaborator

fd '^selinux$'

@sharkdp
Copy link
Owner

sharkdp commented Nov 23, 2020

... or use a glob-based search:

fd -g selinux

@sharkdp
Copy link
Owner

sharkdp commented Dec 1, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants