I've written the following code to zip the big file
The zip file has been created . When I try to UNZIP the file
with the following command
The file got unzipped but created in the following path /home/etc/hst/home/etc/hst/file_nm
Please suggest me the correct unzip command so that the file got unzipped in the /home/etc/hst folder .
Thanks
Last edited by smile689; 10-30-2013 at 11:58 AM..
Reason: correcting the typo mistake
I have a few xml files and I want to input say 5 parameters within each file. is it possible to do so with sed?
<parameter>A</parameter>
<parameter>B</parameter>
....
....
And so on.
These parameters are meant to go in just inside:
<?xml... (2 Replies)
Hello,
I am trying to write a script that has a option of restarting the script from where it failed. I have to write a script called Batch.sh. This script has to run quite a few sql files as shown below:
logcmd.sh -f test1.sql
logcmd.sh -f test2.sql
logcmd.sh -f test3.sql
logcmd.sh -f... (4 Replies)
Hello,
I am trying to return the name of the resulting file from a .zip archive file using unix unzip command.
unzip c07212007.cef7081.zip
Archive: c07212007.cef7081.zip
SecureZIP for z/OS by PKWARE
inflating: CEP/CEM7080/PPVBILL/PASS/G0063V00
I used the following command to unzip in... (5 Replies)
Hi guys,
I have a question about the zip command. Right now I have a directory with some files and folders on it that I want to compress. When I run the zip command:
zip foo -r
I am getting a foo.zip file that once I unzip it contains a foo folder. I want to create the foo.zip, but that... (1 Reply)
I have to zip many pdf files and the size of zip file must not exceed 200 MB. When size is more than 200 MB then multiple zip files needs to be created.
How we can achieve this in UNIX?
I have tried ZIP utility but it takes a lot of time when we add individual pdfs by looping through a... (1 Reply)
Hi,
I need to zip a .dat file with .zip extension. I tried using the "zip" command. But shell says. "ksh: zip: not found"
Currently I am using gunzip to zip and changing the extension ".gz" to ".zip" as follows.
mv $file `echo $file | sed 's/\(.*\.\)gz/\1zip/'`
But when I tried... (1 Reply)
Hi,
I am trying to emulate the '|' functionality through pipe function call. I am passing the o/p of exec in parent as input to the exec in child. The buf is readin the o/p but the exec in child is not working. Can somebody checkout the code and point where am i going wrong or missing something.... (3 Replies)
Hi
I have a requirement in unix shell where I need to zip multiple files on server to one single .zip file. I dont see zip command in AIX and gzip command not doing completely what I want.
One I do .zip file, I should be able to unzip in my local Computer.
Here is example what I want... (9 Replies)
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (2 Replies)
Hi all i am very new to shell scripting and need some help from you to learn
1)i have some log files that gets generated on daily basis example: i have abc_2017_01_30_1.log ,2017_01_30_2.log like wise so i want to zip this 4 logs which are created on same date into one zip folder.
2)Post zipping... (1 Reply)
Discussion started by: b.saipriyanka
1 Replies
LEARN ABOUT CENTOS
zipcloak
zipcloak(1) General Commands Manual zipcloak(1)NAME
zipcloak - encrypt entries in a zipfile
SYNOPSIS
zipcloak [-d] [-b path] [-h] [-v] [-L] zipfile
ARGUMENTS
zipfile Zipfile to encrypt entries in
OPTIONS -b path
--temp-path path
Use the directory given by path for the temporary zip file.
-d
--decrypt
Decrypt encrypted entries (copy if given wrong password).
-h
--help
Show a short help.
-L
--license
Show software license.
-O path
--output-file zipfile
Write output to new archive zipfile, leaving original archive as is.
-q
--quiet
Quiet operation. Suppresses some informational messages.
-v
--version
Show version information.
DESCRIPTION
zipcloak encrypts all unencrypted entries in the zipfile. This is the default action.
The -d option is used to decrypt encrypted entries in the zipfile.
zipcloak uses original zip encryption which is considered weak.
Note: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and can
be freely distributed from any country including the U.S.A. (Previously if this program was imported into the U.S.A, it could not
be re-exported from the U.S.A to another country.) See the file README.CR included in the source distribution for more on this.
Otherwise, the Info-ZIP license applies.
EXAMPLES
To be added.
BUGS
Large files (> 2 GB) and large archives not yet supported.
Split archives not yet supported. A work around is to convert the split archive to a single-file archive using zip and then use zipcloak
on the single-file archive. If needed, the resulting archive can then be split again using zip.
SEE ALSO zip(1), unzip(1)AUTHOR
Info-ZIP
v3.0 of 8 May 2008 zipcloak(1)