【发布时间】:2017-12-08 01:42:44
【问题描述】:
我在 here 上关注本教程,我安装了 GNU 并行并使用 ping 命令对其进行了测试,按照自述文件 here。
尝试:
parallel –j8 ./ A_asymm_refine.sh {} ::: {1..8}
给予:
[user@machine Documents]$ parallel –j8 ./ A_asymm_refine.sh {} ::: {1..8}
Academic tradition requires you to cite works you base your article on.
If you use programs that use GNU Parallel to process data for an article in a
scientific publication, please cite:
O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
;login: The USENIX Magazine, February 2011:42-47.
This helps funding further development; AND IT WON'T COST YOU A CENT.
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.
To silence this citation notice: run 'parallel --citation'.
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
/usr/bin/bash: $'\342\200\223j8': command not found
如何解决问题?
【问题讨论】:
-
您在选项上使用了“短划线”字符 (U+2013) 而不是连字符 (U+002D = ASCII 0x2D)。也许您从 Microsoft 损坏的文档或编码不佳的网站中剪切并粘贴此命令。而是在键盘上键入它并使用正常的连字符键。
-
谢谢。我知道 get """"/usr/bin/bash: ./: Is a directory""" 很多次。
-
没关系,在正斜杠之前有一个额外的空格。
-
@dave_thompson_085,很抱歉这个题外话,但是 {} ::: {1..8} 到底是做什么的?
-
{}在每次执行时被替换为输入值,::: values指定命令行上的输入值 -- 参见 parallel manual{1..8}由 shell 扩展为值 1 2 3 4 5 6 7 8 -- 见bash manual
标签: gnu-parallel