PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

"ls -R | grep ao:$a | sed -e as/:$//' -e..."

Note: This article was originally published at Planet PHP on 11 January 2011.
Planet PHP
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!