Created
November 11, 2020 16:51
-
-
Save gelosi/0f76619669defc27689d89cb285449ac to your computer and use it in GitHub Desktop.
Find text in files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -lr "text to search" . | |
# this is PATH ⤴️ | |
grep -ilr "text to search ignoring case" . | |
mdfind text to search | |
# the system tool, quite powerful - searching for file names & contents (aka Spotlight) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment