【发布时间】:2016-04-18 03:19:12
【问题描述】:
谁能给我一个提示,我怎样才能使以下 bash 脚本正常运行:
path="/path/"
excludepath="! -path \"/path/to/exclude/*\" "
find "$path" "$excludepath" -name *."txt" -type f
当我尝试运行它时,我得到:
find: `! -path "/path/to/exclude/*"': No such file or directory
提前谢谢你。
【问题讨论】:
-
你到底是什么意思?根路径是 $path, /path/。还是我错了?
-
Derp,没关系,选择性失明。
标签: string variables path find