Page Actions
Wiki Actions
User Actions
Submit This Story

List dir tree in bash

find . -type d | sed -e "s/[^-][^\/]*\//  |/g" -e "s/|\([^ ]\)/|-\1/"

Alias it and have fun!!

Discussion

Enter your comment
 
 
blog/2009/10/list_dir_tree_in_bash.txt · Last modified: 2009/10/01 00:00 (external edit)     Back to top
Recent changes RSS feed Creative Commons License Powered by PHP Driven by DokuWiki