I am writing a shell script that unzips a ZIP file into an existing hierarchy of files, potentially overwriting some of the files.
The problem is that the unzip command asks for confirmation:
replace jsp/extension/add-aspect.jsp? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
Is there an option to force unzip to overwrite the files?
unzip -o ZIP_PATH, works as a modifier. – bonzofenix Jul 21 '14 at 22:35-ooption should be used before any other arguments. Example:unzip -o /path/to/archive.zip -d /destination_dir– FelikZ May 28 '15 at 08:48inflating: foldername/filename.php@foraidt – SagarPPanchal Feb 26 '19 at 11:03