Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
7 votes
1 answer
3k views

Why does `zip` in a for loop work when the file exists, but not when it doesn't?

I have a directory that contains several sub-directories. There is a question about zipping the files that contains an answer that I ever-so-slightly modified for my needs. for i in */; do zip "zips/...
Wayne Werner's user avatar
  • 11.9k