I'm using unzip test.zip
in a Shell script. But while executing this line i get an error
Archive: test.zip
skipping: hello.pdf need PK compat. v5.1 (can do v4.6)
Even if i try to run this single command from the terminal in ubuntu it throws the same error need PK compat. v5.1 (can do v4.6)
Uninstalling and reinstalling unzip also didn't work. Alternately I had to install p7zip-full
to unzip the test.zip file. How to fix this and use unzip
in the shell script??
You can use p7zip to perform the required action. Use brew to install it.
$ brew install p7zip
use this to unzip a file
$ 7z x file.zip