Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用一个简单的 bash 命令来导致两个 curl 请求的 sdiff
$ sdiff -l -w 140 $(curl -s "https:/URL/1/2/thing.php?d=20190202") \ $(curl -s "https:/URL/1/2/thing.php?d=20190203")
如果我将两个 curl 请求下载到文件中,则 sdiff 文件可以正常工作。是否可以合并为一个命令?
您可以使用进程替换:
sdiff ... <(curl ...) <(curl ...)