The not-so-useless “yes” bash command: how to confirm a command in every loop

前端 未结 4 1597
面向向阳花
面向向阳花 2021-02-04 06:13

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

4条回答
提交回复
热议问题