?? recls.extra
字號:
# Part of the solution to Questions 1 & 3, Chapter 5 of# "Learning the bash Shell".## Cameron Newham, July 1997.recdir (){ local char local thistab if [ $# -ne 0 ]; then echo -e $tab$vertical fi thistab=$tab$vertical$horizontal tab=$tab$vertical$singletab for file in "$@"; do if [ -d $dir/$file ]; then char="/" else char="" fi echo -e $thistab$file$char dir=$dir/$file if [ -d $dir ]; then recdir $(command ls $dir) fi dir=${dir%/*} done tab=${tab%|\\t} echo -e $tab}recls (){ singletab="\t" vertical="|" horizontal="-------" for tryfile in "$@"; do if [ -d $tryfile ]; then echo -e $tryfile"/" else echo -e $tryfile fi if [ -d $tryfile ]; then dir=$tryfile recdir $(command ls $tryfile) fi done unset dir singletab tab vertical horizontal}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -