Here's a cool find command line that will print out a reasonably nice looking directory tree:
$ find ./ -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
And the output looks like:
|____
|____.bashprompt
| |____bashthemes
| |____functions
|____.ddd
| |____sessions
| |____themes
|____.dia
| |____objects
Don't ask me what it does or how it does it! It was posted by Warren B. on the questions list. It uses the find out put of directories via sed, which does the formatting.
No comments:
Post a Comment