Graphical representation of sub-directories
Tagged with: command, dir, grep, Linux, ls, sed, tree
This command shows a graphical representation of the current sub-directories.
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'mand