使用 bash 从先前的输出流构建多个命令

With bash build several commands from previous output stream

我有一个 bash 命令输出几个存储库 url

https://repos.com/abc
https://repos.com/def
https://repos.com/ghi

我想通过管道传输这些 URL 来构建几个 git 克隆命令,例如它执行的命令:

git clone https://repos.com/abc
git clone https://repos.com/def
git clone https://repos.com/ghi

请问我该怎么做? 谢谢

我用 xargs -n1 git clone