find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' 详见: http://www.micmiu.com/os/mac/mac-osx-cmd-tree/