0

I have the below script to unzip a .zip file and print out a .txt file of the files in the .zip but when I run the script, I get this output: "unzip: can't set permissions of directory 'folder' : Invalid argument"

My script:

for file in *.zip
do
    unzip -- "$file"
    [ -d "${file%%.zip}" ]
    cd "${file%%.zip}"
    echo -e "${file}\t$(echo $(gzip -cd ${file}|wc -l)/4|bc)" >> results.txt
done
Shortytot
  • 3
  • 2

0 Answers0