可能重复:
使用 find 时 Arg 列表太长错误
我尝试在具有特定内容的许多文件夹中找到许多文件,然后将其删除。
find dir.*/* -exec grep -l "content" {} \; | xargs rm -f
Run Code Online (Sandbox Code Playgroud)
我收到以下消息:
-bash: /bin/find: Argument list too long
Run Code Online (Sandbox Code Playgroud)
你能帮助我吗?