下面的短小的shell程序可以列出目錄樹
目錄樹形式如下:
`
`
`
| `
| | `
| `
| | `
| | `
| `
| | `
| | `
| `
腳本如下
#!/bin/sh
# dtree: Usage: dtree [any directory]
dir=${
(cd $dir; pwd)
find $dir
From:http://tw.wingwit.com/Article/program/Oracle/201311/18498.html