"ls -R | grep ao:$a | sed -e as/:$//' -e..."
Note: This article was originally published at Planet PHP
on 10 January 2011.
aols -R | grep ao:$a | sed -e as/:$//' -e as/[^-][^\/]*\//-/g' -e as/^/ /' -e as/-/|/'a-
ls + grep + sed =Atree
Stick it in tree.sh, then alias tree='sh tree.sh', and ta-da! You can now see your directories as a graphical tree on any system!


