One-liner for Windows-like tree command in linux shell

One-liner for Windows-like tree command in linux shell

Posted May 26th, 2009 by shunting

Via:

ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/   /' -e 's/-/|/'