parallel echo ::: A B C ::: 1 2 3 回来 A 1 A 2 B 1 B 2 parallel echo {} and {} ::: A B ::: 1 2 A 1 and A 1 A 2 and A 2 B 1 and B 1 B 2 and B 2
parallel echo ::: A B C ::: 1 2 3
A 1 A 2 B 1 B 2
parallel echo {} and {} ::: A B ::: 1 2
A 1 and A 1 A 2 and A 2 B 1 and B 1 B 2 and B 2
和 parallel echo {1} and {2} ::: A B ::: 1 2 1 and 2 A 1 1 and 2 A 2 1 and 2 B 1 1 and 2 B 2
parallel echo {1} and {2} ::: A B ::: 1 2
1 and 2 A 1 1 and 2 A 2 1 and 2 B 1 1 and 2 B 2
parallel echo {} and {} ::: A B ::: 1 2 按设计执行:插入{}两次。
你的外壳可能在逗你(可能你在使用Trise sh(tcsh))。尝试:
parallel echo '{'1} an'd {2}' ::: A B ::: 1 2