I am transferring a large .zip file (20 GB) from an NT server to HP-UX and Solaris servers. Originally I tried to use info-zip's unzip, but I found out pretty quickly that it does not support files over 4GB. Any suggestions on how to work around this problem? Different decompression utility?... (9 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)
I have some zip files. Every file has a "folder/xml file" inside it. Is there any way to change these zip files directly without unzipping them. I want to convert these zip files to "/xml file" (want to move the xml file/s one root up by removing the folder inside it.)
Ex:
-bash-3.00$ for file... (1 Reply)
I have these zip files that come in with the same name, but different versions. We'll say:
SQL_version2.zip
SQL_version3.zip
SQL_version2432.zip
I was wondering if there is a single command (or even piped command, thus still making it a single command) that will let me unzip the latest... (3 Replies)
I've got to install and compile some C++ source code that has been developed on a windows box on a Sun sparc workstation. Can I simply e-mail myself some windows zip files and then download and unzip them on the sparc box? I've tried this on a linux openSUSE machine and it works fine but I'm not... (4 Replies)
Hi I have 4 files in a folder and I am supposed to group and zip them via a mapping file as such:
Group. Filename
1. A.txt
1. B.txt
2. C.txt
2. D.txt
Result should be 2 zip files - 1.zip and 2.zip created with the contents being the text file.
How can... (7 Replies)
How i print just only the file name in the zip file.
unzip -l AAC_20130930_v13.xml.zip
Archive: AAC_20130930_v13.xml.zip
Length Date Time Name
-------- ---- ---- ----
62665745 11-19-13 10:43 AAC_20130930_v13.xml
-------- -------
62665745 ... (2 Replies)
I have files in the ABC_YYYYMMDD.zip format under a directory. Each zip file contains A text file in the ABC_YYYYMMDD.txt format.
I am trying to create a script that will Rename the zip files and their underlying text file replacing the datepart in them with .
For eg: in the case of... (1 Reply)
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 DEBIAN
zip_fopen_index
ZIP_FOPEN(3) Library Functions Manual ZIP_FOPEN(3)NAME
zip_fopen , - .Nm zip_fopen_index open file in zip archive for reading
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip_file * zip_fopen(struct zip *archive, const char *fname, int flags);
struct zip_file * zip_fopen_index(struct zip *archive, zip_uint64_t index, int flags);
DESCRIPTION
The zip_fopen function opens the file name fname in archive. The flags argument specifies how the name lookup should be done, according to
the values are described in zip_name_locate(3). Also, the following values may be or'ed to it.
ZIP_FL_COMPRESSED Read the compressed data. Otherwise the data is uncompressed by zip_fread.
ZIP_FL_UNCHANGED Read the original data from the zip archive, ignoring any changes made to the file.
The zip_fopen_index function opens the file at position index.
If encrypted data is encountered, the functions call zip_fopen_encrypted(3) or zip_fopen_index_encrypted(3) respectively, using the default
password set with zip_set_default_password(3).
RETURN VALUES
Upon successful completion, a
struct zip_file pointer is returned. Otherwise, NULL is returned and the error code in archive is set to indicate the error.
ERRORS
[ZIP_ER_CHANGED]
The file data has been changed.
[ZIP_ER_COMPNOTSUPP]
The compression method used is not supported.
[ZIP_ER_ENCRNOTSUPP]
The encryption method used is not supported.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
[ZIP_ER_READ]
A file read error occurred.
[ZIP_ER_SEEK]
A file seek error occurred.
[ZIP_ER_ZLIB]
Initializing the zlib stream failed.
The function zip_fopen may also fail and set for any of the errors specified for the routine zip_name_locate(3).
The function zip_fopen_index may also fail with ZIP_ER_INVAL if index is invalid.
SEE ALSO libzip(3), zip_fclose(3), zip_fread(3), zip_get_num_entries(3), zip_name_locate(3), zip_set_default_password(3)AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 14, 2011 ZIP_FOPEN(3)