📄 dirtree.sh
字号:
#! /bin/sh# /*********************** self documentation **********************/# DIRTREE - show DIRectory TREE## Usage: dirtree## /**************** end self doc ********************************/# John Stockwell May 1992 # (based loosely on a shell of the same name by Jack K. Cohen, 1988)ROOT=${CWPROOT}BIN=$ROOT/binSPACE="\_"SPACER="___"SPACING=$1for i in `ls`do if [ -d $i ] then echo fi echo $SPACING$SPACE$i if [ -d $i ] then OLDSPACING=$SPACING SPACING=$SPACING$SPACER cd $i $BIN/dirtree $SPACING cd .. SPACING=$OLDSPACING fidoneexit 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -