I am trying to unzip ~150 files on a SUN server in Unix via a telnet program (PuTTy), so I am restricted (I believe) to single-line command functions. All of the files are password protected, and each one contains three files. Is there a way to automate the process? I have tried 7z, but that only works with a single zip at a time. I have also tried the 'uncompress,' 'unzip,' and 'funzip' commands, but they do not seem to work.
For example, I tried the following code:
and it gave me the following error:
When I tried the unzip command it told me:
Is there a single function that I can use to unzip all of the files with the password? Thanks!
Dave
---------- Post updated at 01:42 PM ---------- Previous update was at 01:40 PM ----------
I guess I will answer my own question, in case anyone else has the same problem. With some help, I figured out how to do it with 7-Zip, in two steps.
1. Create executable .txt file
2. Run the executable .txt file.
A lot simpler than I thought. The password does have to be the same for all files.
Last edited by Davman; 07-07-2010 at 02:44 PM..
Reason: code tags, please...
All,
I have requirement to send password protected excel file in an email from unix/linux box without zipping it. Any help would be appreciated.
Thanks.. (1 Reply)
Hi,
I have a zipped file a.zip. This has got multiple folders in it say x and y. x contains a.txt and y contains a.txt. Is it possible to unzip this file and have the 2 files extracted and rename them to unique names.
Thanks in advance. (1 Reply)
I want to give my long scripts to customer. The customer must not be able to read the scripts even if he has the password. The following command locks and unlocks the script but the set +x is simply ignored.
The code:
read -p 'Script: ' S && C=$S.crypt H='eval "$((dd if=$0 bs=1 skip=//|gpg... (7 Replies)
I dug myself a hole yesterday that I can't seem to get myself out of.
In a very futile attempt to create a new FTP user with limited access via SSH, I inadvertently changed permissions for who knows what and now I am having a problem accessing password protected directories. When I enter the... (1 Reply)
I have some 10 to 20 .ZIP files in a given UNIX Directory and how to extract all the files into a one output file and preferably a .GZ file.
Pls suggest. (2 Replies)
Hie Friends,
I need your help once again.
I have 77 “password protected” winzip files in linux/unix server. I want to decrypt it through an automated script. Password of every file is same and it is mhd*tt.
Please help me.
Usually I unzip it as follows, manually one by one.
unzip <file name> ... (6 Replies)
Hi All,
I want to make my script password protected.
i e: if somebody runs my script it should prompt for password.
Can somebody help me in to execute the same??
Thanks in Advance :b: (11 Replies)
I inhereted a project server that has UNIX installed with a SCO OS. I am trying to learn UNIX but I cannot go beyond the password and login. The original engineers have left the company and nothing was ever written down. How can access our server? (1 Reply)