Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #http://superuser.com/questions/359723/mac-os-x-equivalent-of-the-ubuntu-tree-command
- ##########
- ## tree ##
- ##########
- ## example ...
- #|____Cycles
- #| |____.DS_Store
- #| |____CyclesCards.json
- #| |____Carbon
- #| | |____Carbon.json
- # alternate: alias tree='find . -print | sed -e "s;[^/]*/;|____;g;s;____|; |;g"'
- # use$ tree ; tree . ; tree [some-folder-path]
- function tree {
- find ${1:-.} -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement