我有这样一个命令使用管道
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python另一方面,我想为get-poetry.py脚本提供额外的参数,如下所示
python get-poetry.py --version 0.7.0我怎样才能正确地输送它,以及它是否有可能?
目前,我正在尝试使用xargs,但对这样的命令却没有任何进展。
curl -sSL get-poetry.py | xargs -I {} python "{}" --version 0.7.0发布于 2020-10-02 08:52:15
好的,看起来这是按要求工作的
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python /dev/stdin --version 0.7.0无论如何,如果您有其他适当的工作解决方案,我也希望看到这些方法。
https://unix.stackexchange.com/questions/612511
复制相似问题