I'd like to find all files that contain a certain string of text. How would you do that in the Terminal?
grep -r 'text goes here' path_goes_here
Sign up for our newsletter and get our top new questions delivered to your inbox (see an example).
mdfind "text goes here"
mdfind -onlyin /home/user/Desktop -live "live update"
don't forget to look at:
brew install ack
ack "text goes here"
find . |grep "text goes here"
grep -RnslI "text goes here"
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
5 years ago
3 months ago