Tree
- November 10th, 2009
- Posted in IT
- Write comment
Some times you want to recursively check the contents of a given directory right in your shell asking for its inherent tree.
But sometimes the ‘tree’ utility is not available, and you may have no rights to install it or you just don’t want to. Other times you may even have to deal with ports to get the simple tree utility.
In these cases, find and sed are here to help:
#!/bin/bash find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'



No comments yet.