相关疑难解决方法(0)

如何在find中排除目录.命令

我正在尝试find为所有JavaScript文件运行命令,但如何排除特定目录?

这是find我们正在使用的代码.

for file in $(find . -name '*.js')
do 
  java -jar config/yuicompressor-2.4.2.jar --type js $file -o $file
done
Run Code Online (Sandbox Code Playgroud)

linux shell find

1250
推荐指数
26
解决办法
92万
查看次数

标签 统计

find ×1

linux ×1

shell ×1