📜  linux 替代树 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:32.960000             🧑  作者: Mango

代码示例1
#replica of tree comand using find and sed
function tree() {
    find ${1:-.} | sed -e "s/[^-][^\/]*\//  |/g" -e "s/|\([^ ]\)/|-\1/"
}