我已经在
http://www.gnu.org/software/parallel/man.html#example__calling_bash_functions读过这个例子但是,是否可以使用gnu parallel调用2个函数,这些函数没有传递给它们的任何变量?
例
a() { echo "download a" wget fileA } b() { echo "download b" wget fileB }
在后台运行它们.然后等待他们完成.
原文链接:https://www.f2er.com/bash/384089.htmla() { echo "download a" wget fileA } b() { echo "download b" wget fileB } a & b & wait # waits for all background processes to complete