I wrote a loop to unzip all zip files in a directory.
for f in *zip do unzip $f done
However, I have to confirm the overwrite at every step
Wonderful, maybe one of the few cases where yes is still useful
Try with:
for f in *zip do yes | unzip $f done
Which will work printing "y" at every command.
Or alternatively, you can specify the string provided by yes, like:
for f in *zip do yes A | unzip $f done