Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jondunford

macrumors 6502
Original poster
Oct 22, 2013
480
1
Going for a poo Moderator
how do i search a folder for a keyword

i used cmd + F but this only searches the names of the files inside the folder, i want to search the contents of all the documents in the specific folder for the keyword



thanks;):apple::):p
 
how do i search a folder for a keyword

i used cmd + F but this only searches the names of the files inside the folder, i want to search the contents of all the documents in the specific folder for the keyword



thanks;):apple::):p


You can specify in the "command + F"-window where you want the search to take place.
http://oi41.tinypic.com/j67rkg.jpg
There is a picture of my MBA when i try to search, you can specify the folder, in my case, can you choose between "movies" and "this mac"
Did it help?
 
Last edited:
CMD+Space

Wouldn't the Cmd + Space yield the results you want? It searches the whole computer but if you can find what you looking for what's the difference.
 
how do i search a folder for a keyword

i used cmd + F but this only searches the names of the files inside the folder, i want to search the contents of all the documents in the specific folder for the keyword



thanks;):apple::):p

Open Terminal then use grep -r keyword /path/to/folder/containing/the/documents/*.
 
Wouldn't the Cmd + Space yield the results you want? It searches the whole computer but if you can find what you looking for what's the difference.

Because I want to search a specific folder for a word which is bound to appear in files all over my computer


Thanks for the answers I have it sorted now


And sorry for the slow reply I was banned for making this thread
 
Because I want to search a specific folder for a word which is bound to appear in files all over my computer
Indeed you can make Spotlight (aka Finder's search) run only over current directory, not the whole disk. You can even set your preference for Finder:
7GYpw.png

It will automatically descend all subfolders of the current folder.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.