Output Directory Tree On Linux
Sunday, July 5th, 2009Here's a neat little hack that you can use to ouput a directory tree of the current working directory. Shouldn't be hard to write a little script to make your own "dirtree" command.
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
Link to this post!