Command to Print Out Directory Tree Listing

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

Found here

2 Replies to “Command to Print Out Directory Tree Listing”

Leave a Reply