You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: