Get (file) Info of all files in a folder

Discussion in 'Mac Basics and Help' started by satyen20, Mar 26, 2009.

  1. satyen20 macrumors newbie

    Joined:
    Sep 23, 2008
    #1
    Hi All,
    I have about 100 files in a folder (not a specific file type -- I found a Macro for word but it only recognized doc files). I want to get the times they were created and modified (for ex: created at 04:30:07 and modified at 04:41:59) and put them in a text file. Does anyone know how I can achieve this?
    I appreciate your hellp!
    SR.
     
  2. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #2
    In Terminal, run

    ls -l [drag the folder into the Terminal window] > ~/Desktop/list.txt

    A file named list.txt should appear on your desktop. You'll get a bunch of extra trash, but the info you're looking for will be there.
     
  3. satyen20 thread starter macrumors newbie

    Joined:
    Sep 23, 2008
    #3
    Thanks for such a quick reply!
     
  4. BlueRevolution macrumors 603

    BlueRevolution

    Joined:
    Jul 26, 2004
    Location:
    Montreal, QC
    #4
    No problem. If you run man ls you'll see more details on the command you're using. Instead of just -l you could try adding flags like t (sort by time modified), c (display last changed date rather than created), and/or h (human-readable file sizes in kilobytes, megabytes, etc) to the end of -l.
     

Share This Page