I was stumbling around on the internet this morning and I found this awesome site… (http://www.centerkey.com/tree/)
This guy posted an amazing one line script that will graphically show your directory tree with a simple one line command:
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
and that’s all!!! It works great!
Amazing One Line Script
leave a comment »
I was stumbling around on the internet this morning and I found this awesome site… (http://www.centerkey.com/tree/)
This guy posted an amazing one line script that will graphically show your directory tree with a simple one line command:
and that’s all!!! It works great!
Written by ejes
March 17, 2010 at 11:42 am
Posted in Commentary, Neat Stuff/Good Ideas, Scripts
Tagged with bash, ksh, one line, script, sh, tree, unix