目的:列出目录结构
本地使用
brew install tree
安装了tree,
brew list //显示有tree
cscope jpeg libpng macvim tree webp xz
但是测试的时候
➜ ~ tree -d usr/
sed: illegal option -- d
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
提示有错误,目前只能使用tree命令?目前版本是1.7.0,会不会是版本的问题?还是哪里操作出错。
谢谢!
用
which tree
看一下是不是被替换成sed
了,1.7.0 在我这里没问题