Advertisement
asanchez75

tree

Nov 8th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #http://superuser.com/questions/359723/mac-os-x-equivalent-of-the-ubuntu-tree-command
  2. ##########
  3. ## tree ##
  4. ##########
  5. ## example ...
  6. #|____Cycles
  7. #| |____.DS_Store
  8. #| |____CyclesCards.json
  9. #| |____Carbon
  10. #| | |____Carbon.json
  11. # alternate: alias tree='find . -print | sed -e "s;[^/]*/;|____;g;s;____|; |;g"'
  12. # use$ tree ; tree . ; tree [some-folder-path]
  13. function tree {
  14. find ${1:-.} -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement