1

Created a bash script to bulk upload images to Azure, and happened so that few images were not uploaded and I don't know which ones. When I run the script if it finds that blob already exists it asked me if I want to overwrite it (Y/N). Is there a flag to say No to all?

for loop..
azure storage blob upload $file $storage $fileName
echo -e "$region;$cuid;$url" >> file.csv
Alex
  • 1,210
  • 3
  • 21
  • 34

1 Answers1

1

You can use yes utility:

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

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

Juan Diego Godoy Robles
  • 14,447
  • 2
  • 38
  • 52