Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Looking for help unzip multiple file Post 303010173 by Don Cragun on Thursday 28th of December 2017 03:48:37 AM
Old 12-28-2017
Quote:
Originally Posted by kttan
Hi all ,

My server using backup software and backup software corrupted , unable to restore it perfectly.

so i'm need a way to 1 time unzip all file, due to now all my backup file are in zip type.

will be sometime like this :
Code:
M:\path\folder.zip
M:\path\folder\subfolder
M:\path\folder\subfolder\text.txt.zip

it is alot of folder and file, every single file been become a zip


i'm try with
Code:
unzip -jod *.zip

but unable to et it work.

Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!
The command you're trying can't possibly work.

First, the unzip -d option requires an option-argument naming the directory into which files extracted from each of the files being unzipped will be placed. Your command does not provide an option-argument for the -d option.

Second, your .zip files are not all located in the same directory. Therefore, *.zip can't locate all of the .zip files on the M: drive no matter what directory you're sitting in when you invoke that command.

And, third, we have no idea what the contents are in each of your .zip files. I'm guessing that the M: drive on your Windows systems are a separate drive from the drive(s) from which the files in those .zip files were archived. Unless the .zip files contain absolute pathnames of the source files that have been archived and you want to restore those files in their original locations, we have no information on how to figure out what directory should be used as the target for the extraction of files from any of those archives. Furthermore, since you're using the unzip -j option, you're telling unzip to ignore all directory information that is stored in each archive that is being read.
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

2. UNIX for Dummies Questions & Answers

How to unzip multiple files (encrypted) in a directory.

Good day all. I want to unzip multiple files in a directory. Suppose there are two files: test.txt.zip and test1.txt.zip Using this command: unzip -o -P test*.zip results in the unzipping of the first file not second. It gives this error: Archive: test.txt.zip caution: filename not... (2 Replies)
Discussion started by: er_ashu
2 Replies

3. Shell Programming and Scripting

How to Unzip a .ZIP file in Unix without using unzip cmd..?????

Hi All I have ftped a .ZIP file (zipped using WinZip in Windows) to my Unix server (HP-UX). I don't have unzip cmd available in my curent Unix version Please let me know any cmd in UNIX (other than unzip) using which I can unzip this .ZIP file . Please elaborate on the commands aval and... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

4. Shell Programming and Scripting

How to unzip the file

Hi, I have a file in the form of .zip in unix directory, now I want to unzip the file in unix environment. May I know how to unzip this file File name: cust.zip Thanks in Advance... Aswice (1 Reply)
Discussion started by: aswice
1 Replies

5. UNIX for Advanced & Expert Users

How can i unzip .gz extension file?

I have pulled a .gz file from UNIX to window. Is there way to unzip UNIX based file on window? Thanks advance. (9 Replies)
Discussion started by: J_ang
9 Replies

6. Shell Programming and Scripting

How to Unzip a file using unzip utility for files zipped without zip utility ?

Hi, I need to zip/compress a data file and send to a vendor. The vendor does have only unzip utility and can accept only .ZIP files. I do not have zip utility in my server. How do I zip/compress the file so that it can be deflated using unzip command ? I tried gzip & compress commands, but... (1 Reply)
Discussion started by: Sabari Nath S
1 Replies

7. UNIX for Dummies Questions & Answers

unzip single file in zip file to STDOUT

Hi, Does anyone know if there is an unzip command similar to tar -xOf $tarBall $fileInTarFile which will untar a single file in a tar ball to STDOUT ? I want to do the same but with a .zip (ZIP archive) file. - Andy ---------- Post updated at 05:56 PM ---------- Previous update... (0 Replies)
Discussion started by: andyatit
0 Replies

8. Shell Programming and Scripting

Unzip the .zip file without using unzip utility in UNIX

I have .zip file, i want to list all the files archived in the zip file. unzip utility is not working for me in unix. Please help me resolve this issue Thanks ganesh. (3 Replies)
Discussion started by: Ganesh L
3 Replies

9. Shell Programming and Scripting

Unzip Multiple zip files and Strip directory

I receive multiple zipped directories with files in them, so the .zip name is the name of the directory containing the files. so i have used a simple loop to unzip all of them but when unzipped i have folders/directories, i wanted to strip these directories and remain with the actual files from... (1 Reply)
Discussion started by: buggzdiq
1 Replies

10. Shell Programming and Scripting

Unzip a gz file

Please tell me the unix command how to unzip a gz file(say a qwe.gz) and the orginal gz file should remain intact. Thanks in advance (7 Replies)
Discussion started by: pranabpal
7 Replies
All times are GMT -4. The time now is 08:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy