|
发表于 2006-3-12 20:49:57
|
显示全部楼层
好像这样还不是最理想:
- find AA -type d
- AA
- AA/BB
- AA/BB/CC
- AA/BB/CC/DD
- AA/BB/CC/EE
- AA/BB/CC/EE/FF
- find AA -type d -depth
- find: warning: you have specified the -depth option after a non-option argument -type, but options are not positional (-depth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
- AA/BB/CC/DD
- AA/BB/CC/EE/FF
- AA/BB/CC/EE
- AA/BB/CC
- AA/BB
- AA
复制代码
当然最好避免pipe。 |
|