Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux alternatives to tree

#replica of tree comand using find and sed
function tree() {
    find ${1:-.} | sed -e "s/[^-][^/]*//  |/g" -e "s/|([^ ])/|-1/"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #linux #alternatives #tree
ADD COMMENT
Topic
Name
5+5 =