List dir tree in bash

This is a simple "tree" command:
find . -type d | sed -e "s/[^-][^\/]*\//  |/g" -e "s/|\([^ ]\)/|-\1/"
Alias it and have fun!!

0 comments:

Post a Comment

| More

Twitter Updates