Thursday, September 21, 2006

Unix 'tree'

Not much use, but clever. This will print a directory listing similar to the windows/dos 'tree' command
ls -R | grep ":" | sed -e 's/://' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-//'

No comments: