Print directory tree
Print a tree of the current directory using this cryptic command.
$ ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'Or install the tree package
$ brew install treeVarious snippets that I have found to be helpful.
Print a tree of the current directory using this cryptic command.
$ ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'Or install the tree package
$ brew install tree