小编use*_*840的帖子

使用并行在没有输入的情况下运行脚本

我正在尝试使用 GNU 并行运行脚本的许多实例,但该脚本没有参数。

如果我只是执行 'parallel foo.sh' 我得到这个:

parallel: Warning: Input is read from the terminal. Only experts do this on purpose. Press CTRL-D to exit.
Run Code Online (Sandbox Code Playgroud)

linux gnu

12
推荐指数
2
解决办法
9869
查看次数

如何使用 find -exec 和 rm 删除目录内容(而不是目录本身)?

我正在尝试使用以下方法删除某些目录的内容(但不是目录本身):

find -type d -name someDirs -exec rm -rf {}/* \;
Run Code Online (Sandbox Code Playgroud)

但它不起作用。有小费吗?

linux

8
推荐指数
3
解决办法
4157
查看次数

标签 统计

linux ×2

gnu ×1