Sample Header Ad - 728x90

unzip: can't set permissions of directory 'folder' : Invalid argument

0 votes
0 answers
220 views
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
Asked by Shortytot (3 rep)
Aug 16, 2022, 07:47 PM