- List all directories recursively
- Filter output to show only directory names
- Remove trailing colons from directory names
- Replace directory names with tree structure symbols
- Indent lines to represent hierarchy
bash
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*/--/g' -e 's/^/ /' -e 's/-/|/'