2
I’m trying to unpack a large mass of files on linux and I’m trying to use a for that looks like this:
for z in *.zip; do unzip $z ; done
but I get the following message:
unzip: cannot find or open divide, divide.zip or divide.ZIP. unzip: cannot find or open install, install.zip or install.ZIP.
The biggest problem is because there are spaces in the names, etc.
I’ve done another one for
replacing the spaces with '_' but I wonder if there is any way to unpack without replacing the spaces.
Caution: the first quotation marks are extra -- maybe:
for z in *.zip; do unzip "$z" ; done
to expand the*
?– JJoao
No, the double quotes are just the question, because the colleague was having trouble with filenames with spaces.
– Thiago Rider Augusto