相关疑难解决方法(0)

如何将参数传递给输入到 bash 的脚本

现在我有这样的单线:

curl -fsSL http://git.io/vvZMn | bash
Run Code Online (Sandbox Code Playgroud)

它正在下载脚本并将其作为标准输入文件传递给 bash。我想用附加参数运行这个脚本print

也许是这样的?

curl -fsSL http://git.io/vvZMn | bash -- print
Run Code Online (Sandbox Code Playgroud)

但这不起作用。

bash pipe input curl

12
推荐指数
1
解决办法
5767
查看次数

标签 统计

bash ×1

curl ×1

input ×1

pipe ×1