Mac OS: File Stocktaking: Equivalent of TREE (as in DOS)

How, on a Mac OS system, to do the equivalent of TREE in DOS:

http://murphymac.com/tree-command-for-mac/

  • find . -print | sed -e ‘s;[^/]*/;|____;g;s;____|; |;g’
    • And there is much more on ths in the article, including how to add this “command” to user profile.

My crude adaption of it, to list only the main directories in my [Media] area:

  • find . -type d \! -name “BPAV” \! -name “CLPR” \! -name “TAKR” \! -name “929*” -print | sed -e ‘s;[^/]*/;|____;g;s;____|; |;g’
    • Crude but delivered what I wanted.

Leave a Reply

You must be logged in to post a comment.