Skip to content

Instantly share code, notes, and snippets.

@neroze
Created June 6, 2024 07:57
Show Gist options
  • Save neroze/c299a1573098f2ca532d4c943e2c4dc4 to your computer and use it in GitHub Desktop.
Save neroze/c299a1573098f2ca532d4c943e2c4dc4 to your computer and use it in GitHub Desktop.
search with CLI - find + grep
❯ find [tareget folder] -type d -name '[folder to ingore]' -prune -o -type f -print | xargs grep --color=auto "[text to search]"
❯ find ./core/ -type d -name 'node_modules' -prune -o -type f -print | xargs grep --color=auto "click"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment