Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

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

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 07-03-2007   -   Original Discussion by er_ashu
er_ashu's Unix or Linux Image
er_ashu er_ashu is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 17 May 2011, 1:58 PM EDT
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Error 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 [PASSWORD] test*.zip

results in the unzipping of the first file not second.
It gives this error:

Archive: test.txt.zip
caution: filename not matched: test1.txt.zip

Please help.

Regards
Ashu
Sponsored Links
    #2  
Old Unix and Linux 07-03-2007   -   Original Discussion by er_ashu
pressy's Unix or Linux Image
pressy pressy is offline Forum Advisor  
solaris cultist
 
Join Date: Aug 2003
Last Activity: 4 October 2017, 11:02 AM EDT
Location: Vienna / Austria (Europe) [EARTH]
Posts: 739
Thanks: 1
Thanked 2 Times in 2 Posts
you could use:

for x in text*zip; do unzip -o -P [PASSWORD] $x ; done

regards
P
Sponsored Links
    #3  
Old Unix and Linux 07-03-2007   -   Original Discussion by er_ashu
er_ashu's Unix or Linux Image
er_ashu er_ashu is offline
Registered User
 
Join Date: Apr 2007
Last Activity: 17 May 2011, 1:58 PM EDT
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks a lot.
Sponsored Links
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
run vi/vim encrypted shell script without decryption on multiple servers lovesaikrishna Shell Programming and Scripting 0 03-13-2012 06:35 PM
Multiple files with the same name in the same directory Vijay81 UNIX for Dummies Questions & Answers 1 01-24-2012 05:38 PM
How to Unzip a file using unzip utility for files zipped without zip utility ? Sabari Nath S Shell Programming and Scripting 1 12-11-2009 06:18 PM
How to Pull out multiple files from DB table and redirect all those files to a differetn directory? ss3944 Shell Programming and Scripting 3 11-21-2009 02:08 AM
ftp multiple files from same directory lweegp Shell Programming and Scripting 3 03-17-2009 10:03 PM



All times are GMT -4. The time now is 08:10 PM.