gpt4 book ai didi

bash - Azure CLI 跳过覆盖标志

转载 作者:行者123 更新时间:2023-12-03 02:55:18 25 4
gpt4 key购买 nike

创建了一个bash脚本来批量上传图像到Azure,结果很少有图像没有上传,我不知道哪些图像。当我运行脚本时,如果它发现 blob 已经存在,它会询问我是否要覆盖它(是/否)。是否有一面旗帜对所有人说“不”?

for loop..
azure storage blob upload $file $storage $fileName
echo -e "$region;$cuid;$url" >> file.csv

最佳答案

您可以使用yes实用程序:

yes N | azure storage blob upload $file $storage $fileName

Repeatedly output a line with all specified STRING(s), or ‘y’.

关于bash - Azure CLI 跳过覆盖标志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53222845/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com