Tuesday, January 18, 2011

Command to display tree structure in Solaris

Following combination of fond and sed with a rich use of regex will display tree structure of directories in solaris machines.

find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'

2 comments: