Bash Azure CLI跳过覆盖标志

Bash Azure CLI跳过覆盖标志,bash,azure,Bash,Azure,创建了一个bash脚本来将图像批量上传到Azure,结果很少有图像没有上传,我不知道是哪一个。当我运行脚本时,如果它发现blob已经存在,它会询问我是否要覆盖它(是/否)。是否有一面旗帜可以对所有人说不 for loop.. azure storage blob upload $file $storage $fileName echo -e "$region;$cuid;$url" >> file.csv 您可以使用yes实用程序: yes N | azure storage bl

创建了一个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
重复输出包含所有指定字符串的行,或“y”


嗨,klashxx,你知道powershell是否有相同的用法吗?检查: