How do I search a folder for a keyword?

Discussion in 'OS X Mavericks (10.9)' started by jondunford, Dec 14, 2013.

  1. jondunford macrumors 6502

    jondunford

    Joined:
    Oct 22, 2013
    Location:
    Going for a poo Moderator
    #1
    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
     
  2. vonbolve, Dec 14, 2013
    Last edited: Dec 14, 2013

    vonbolve macrumors newbie

    Joined:
    Nov 3, 2013
    #2

    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?
     
  3. IGregory macrumors 6502a

    IGregory

    Joined:
    Aug 5, 2012
    #3
    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.
     
  4. MacUser2525 macrumors 68000

    MacUser2525

    Joined:
    Mar 17, 2007
    Location:
    Canada
    #4
    Open Terminal then use grep -r keyword /path/to/folder/containing/the/documents/*.
     
  5. jondunford thread starter macrumors 6502

    jondunford

    Joined:
    Oct 22, 2013
    Location:
    Going for a poo Moderator
    #5
    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
     
  6. priitv8 macrumors 68020

    Joined:
    Jan 13, 2011
    Location:
    Estonia
    #6
    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:
    [​IMG]
    It will automatically descend all subfolders of the current folder.
     

Share This Page