January 09, 2006
Directory tree
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.
del.icio.us | Digg it | Furl | Yahoo MyWeb | Create Social Bookmark Links
Posted by jdarnold at 07:24 AM | TrackBack
Track with co.mments
Track with co.mments 


