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

Filter for filetype and exact words #90

Open
shrkamat opened this issue Jul 19, 2023 · 0 comments
Open

Filter for filetype and exact words #90

shrkamat opened this issue Jul 19, 2023 · 0 comments

Comments

@shrkamat
Copy link

shrkamat commented Jul 19, 2023

AFAIK there is no way to filter for filetypes in csearch. grep tool provides this with --include flag.

Headers only search
grep --include="*.h" -w SEARCH_EXACT_WORD

This feature might already be present in csearch tool, but I see it fails. I would like to search for exact words in header files alone.
I tried this
csearch '\<SEARCH_EXACT_WORD\>' but this fails.

As workaround
csearch SEARCH_EXACT_WORD | grep '\.h' | grep -w SEARCH_EXACT_WORD

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

No branches or pull requests

1 participant