Search by Date

Discussion in 'iMac' started by mikelamar, Aug 8, 2016.

Tags:
  1. mikelamar macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #1
    I'm looking for a search program in order to find some files in my external 4GB HD but I want to let me filter the data by date. I use Easy Find but it doesnt have any date filters.
    Thanks
     
  2. IngerMan macrumors 6502a

    IngerMan

    Joined:
    Feb 21, 2011
    Location:
    Michigan
    #2
    I believe you can do that in Finder. At least list the files by date oldest to newest vice versus. By date created or opened or modified. I believe
     
  3. mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #3
    I've not indexed my external disk so it cannot be done like this...
     
  4. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #4
  5. mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #5
    Not working for my external, I dont get any result whatever I search for...
     
  6. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #6
    It works for me. I just did a test on a external with some documents I moved over and it worked fine. Is the external formatted in OS X Extended?
     
  7. mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
  8. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #8
    Won't work. I don't know of any OS X utility that is going to index and search a NTFS disk.
     
  9. mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #9
    So Im looking for a program that indexes ntfs formatted drives...
     
  10. Weaselboy Moderator

    Weaselboy

    Staff Member

    Joined:
    Jan 23, 2005
    Location:
    California
    #10
    Yes... but I don't know of any Mac (OS X) app that will do that. Maybe somebody else here is aware of one.
     
  11. MC6800 macrumors 6502

    Joined:
    Jun 29, 2016
    #11
    There's always the good ol' 'find' command in Terminal. Something in this form:

    find /Volumes/FooDrive -cnewer ~/Desktop/MyRecentFile -print
     
  12. mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #12
    I found EasyFind and it's free. I hope it works
     
  13. mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #13
    No luck at all. (Ive no idea about terminal, Im not able to use it)
    What I've to do in order to find the changes that have been done to my NTFS drive during the last 2 months?
     
  14. MC6800 macrumors 6502

    Joined:
    Jun 29, 2016
    #14
    The Terminal solution is not that hard:

    Type a Command-Space followed by "term" and hit return. It should open a Terminal window.
    Move that window so it's beside a Finder window (or the desktop) that shows the target drive or folder to search.
    Type "cd " (c d space) and then drag-and-drop your target drive on to this window. That should cause it to type the full path name into the window. Hit return and the command will Change Directory to that target location.
    Copy the following command (not including the double-quotes): "find . -newerct '2 months ago' -ls".
    Paste it into Terminal, and hit return. You should see a list of files newer than two months.

    You can google "unix find" for more.
     
  15. mikelamar, Aug 10, 2016
    Last edited: Aug 10, 2016

    mikelamar thread starter macrumors newbie

    mikelamar

    Joined:
    Mar 23, 2016
    #15
    Ok this was not hard to do and was really helpful. Now I've to ask you how I filter just the Folders and not the files. There are millions of files, in a 2TB HD.
    Please tell me how to find the folders that I created during the last 2 months

    PS: I need to learn how this thing called terminal works
     
  16. MC6800 macrumors 6502

    Joined:
    Jun 29, 2016
    #16
    Yep, Terminal, the Unix shell, is very powerful.

    You can get a manual for any Unix command using 'man' (type a space for next page, 'q' to quit):

    man find

    'find' has tons of switches that it calls Primaries. The two useful here are '-type d' to filter to files of type Directory (Unix for folder), and '-newerBt' which is variation of '-newerct' except it goes by creation time. We now have:

    find . -type d -newerBt '2 months ago' -ls

    Note that applications are actually directories, as are other packages. We can also filter them out with:

    find . -name '*.app' -prune -o -type d -newerBt '2 months ago' -ls

    You'll likely get a number of "Permission denied" lines in system-owned directories. You can get permission by prepending a 'sudo ' to a command and entering your password. First time you do this it will give you the J. Hector Fezandie lecture.
     

Share This Page