相关疑难解决方法(0)

在find中使用分号(;)vs plus(+)和exec

为什么使用之间的输出存在差异

find . -exec ls '{}' \+
Run Code Online (Sandbox Code Playgroud)

find . -exec ls '{}' \;
Run Code Online (Sandbox Code Playgroud)

我有:

$ find . -exec ls  \{\} \+
./file1  ./file2

.:
file1  file2  testdir1

./testdir1:
testdir2

./testdir1/testdir2:


$ find . -exec ls  \{\} \;
file1  file2  testdir1
testdir2
./file2
./file1
Run Code Online (Sandbox Code Playgroud)

find

140
推荐指数
5
解决办法
3万
查看次数

使用命令行从指定路径递归删除node_modules文件夹

我有多个npm项目保存在本地目录中.现在我想在没有node_modules文件夹的情况下备份我的项目,因为它占用了大量空间,并且可以随时使用来检索npm install.

因此,我需要一个解决方案,使用命令行界面从指定路径递归删除所有node_modules文件夹.任何建议/帮助都非常值得一提.

macos bash command-line-interface node-modules

59
推荐指数
7
解决办法
1万
查看次数

标签 统计

bash ×1

command-line-interface ×1

find ×1

macos ×1

node-modules ×1