11-21-2005
how to read text file in zip file
Hi,
My zip File name is: abc.zip
My Text file name is :test.txt
path in zip file :av/bd/9005
Plz need this way
Thanks lot.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
Discussion started by: alexcol
8 Replies
2. Shell Programming and Scripting
Hi All,
I would like to extract specific file from a zip archive.
I have a zip archive "sample.zip".
sample.zip contains few text files and images... text1.txt, text2.txt, pic.jpg etc...
I need to read specific file "text2.txt" from "sample.zip" WITHOUT EXTRACTING the zip file.
... (4 Replies)
Discussion started by: sridharg
4 Replies
3. Shell Programming and Scripting
I have list of files in a directory 'dir'. Each file is of type HTML. I need to read each file and get the string which starts with 'http' and write them in a new text file. How can i do this shell scripting?
file1.html
<head>
<url>http://www.google.com</url>
</head>
file2.html
<head>... (6 Replies)
Discussion started by: vel4ever
6 Replies
4. Shell Programming and Scripting
Hi Gurus,
i have 8 zipped files and each file is having more than 100,000 records or more.
issue :-
i want to search the missing text from each zipped files
i have stuck here, the below command works fine if i give the value 10 for the deptno.
if i have more than 1 records... (6 Replies)
Discussion started by: SeenuGuddu
6 Replies
5. Shell Programming and Scripting
HI ,
There are more than 100 zip files in a directory and i wanted to see if there is a max1157.txt file in any of the zip files without actually unzipping them. Could you please help. Thanks in Advance.
Karthik. (6 Replies)
Discussion started by: karthikk0508
6 Replies
6. Shell Programming and Scripting
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)
Discussion started by: bash987
1 Replies
7. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
could you please answer the below question.
1)How to read the data from zip file without unzip?
this is interview question
Regards
Priyanka (1 Reply)
Discussion started by: pspriyanka
1 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
could you please answer the below question.
1)How to read the data from zip file without unzip?
Regards
Priyanka (2 Replies)
Discussion started by: pspriyanka
2 Replies
10. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
LEARN ABOUT CENTOS
zip_fdopen
ZIP_FDOPEN(3) Library Functions Manual ZIP_FDOPEN(3)
NAME
zip_fdopen - open zip archive using open file descriptor
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip * zip_fdopen(int fd, int flags, int *errorp);
DESCRIPTION
The zip archive specified by the open file descriptor fd is opened and a pointer to a
struct zip, used to manipulate the archive, is returned. In contrast to zip_open(3), using the archive can only be opened in read-only
mode. The fd argument may not be used any longer after calling The are specified by or'ing the following values, or 0 for none of them.
ZIP_CHECKCONS Perform additional consistency checks on the archive, and error if they fail.
If an error occurs and errorp is it will be set to the corresponding error code.
RETURN VALUES
Upon successful completion zip_fdopen returns a
struct zip pointer, and fd should not be used any longer, nor passed to close(2). Otherwise, NULL is returned and *errorp is set to indi-
cate the error. In the error case, fd remains unchanged.
ERRORS
The file specified by fd is prepared for use by libzip(3) unless:
[ZIP_ER_INCONS]
Inconsistencies were found in the file specified by path and ZIP_CHECKCONS was specified.
[ZIP_ER_INVAL]
The flags argument is invalid. Not all zip_open(3) flags are allowed for see DESCRIPTION.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
[ZIP_ER_NOZIP]
The file specified by fd is not a zip archive.
[ZIP_ER_OPEN]
The file specified by fd could not be prepared for use by libzip(3).
[ZIP_ER_READ]
A read error occurred; see for details.
[ZIP_ER_SEEK]
The file specified by fd does not allow seeks.
SEE ALSO
libzip(3), zip_close(3), zip_error_to_str(3), zip_open(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 1, 2010 ZIP_FDOPEN(3)