file tree on mac as text file --a program for this?

Discussion in 'Mac Apps and Mac App Store' started by whyrichard, May 22, 2007.

  1. whyrichard macrumors 68000

    Joined:
    Aug 15, 2002
    #1
    Is there a free way to create a text file of all the files in my mac?


    preferably with the folder heirarchy?


    thanks,
    r.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Open the Terminal. Change to the directory you want to start in and type:

    Code:
    find * name > ~/Desktop/tree.txt
    After some time the file tree.txt on your Desktop will contain a list of all files in all directories from the point you start at.

    If you need to find out how to move around the folder tree at the Unix command line there are lots of guides out there.
     
  3. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #3
    The "ls -R" command. Pipe the output to a file. like this
    "ls -R > somefilename.txt"

    There are 1,000 variations of the above and you might use find or even echo in place of ls.
     
  4. whyrichard thread starter macrumors 68000

    Joined:
    Aug 15, 2002
    #4
    but is there a way to do this in a more controlled fashion... so that you can select the folders you want shown and then export that list outline as a text file...?

    thanks for your help...

    also need to do this on two windows computers.....

    r.
     

Share This Page