Imitation of tree -d command.
1 2 3 4 | #!/bin/bash
if [ -z "$1" ]; then loc=$(pwd); else loc=$1; fi
ls -R $loc | grep ':$' | sed -e 's/:$//;s/[^-][^\/]*\//--/g;s/^/ /;s/-/|/'
|
Tags: tree
Imitation of tree -d command.
1 2 3 4 | #!/bin/bash
if [ -z "$1" ]; then loc=$(pwd); else loc=$1; fi
ls -R $loc | grep ':$' | sed -e 's/:$//;s/[^-][^\/]*\//--/g;s/^/ /;s/-/|/'
|
WooT ! It's a great mini-tool :)