Skip to main content
add forgotten `for`
Source Link
Bodo
  • 6.4k
  • 18
  • 30

You cannot specify wildcards as the zip file argument for the zip command because the shell would replace this with multiple file names. Instead you can use a loop to process multiple zip files one by one.

for file in *.zip do zip -ur "$file" images done 

or in one line

for file in *.zip ; do zip -ur "$file" images ; done 

You cannot specify wildcards as the zip file argument for the zip command because the shell would replace this with multiple file names. Instead you can use a loop to process multiple zip files one by one.

file in *.zip do zip -ur "$file" images done 

or in one line

for file in *.zip ; do zip -ur "$file" images ; done 

You cannot specify wildcards as the zip file argument for the zip command because the shell would replace this with multiple file names. Instead you can use a loop to process multiple zip files one by one.

for file in *.zip do zip -ur "$file" images done 

or in one line

for file in *.zip ; do zip -ur "$file" images ; done 
Source Link
Bodo
  • 6.4k
  • 18
  • 30

You cannot specify wildcards as the zip file argument for the zip command because the shell would replace this with multiple file names. Instead you can use a loop to process multiple zip files one by one.

file in *.zip do zip -ur "$file" images done 

or in one line

for file in *.zip ; do zip -ur "$file" images ; done