为什么使用之间的输出存在差异
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) 我有多个npm项目保存在本地目录中.现在我想在没有node_modules文件夹的情况下备份我的项目,因为它占用了大量空间,并且可以随时使用来检索npm install.
因此,我需要一个解决方案,使用命令行界面从指定路径递归删除所有node_modules文件夹.任何建议/帮助都非常值得一提.