10-29-2008
Add a file to existing zip file
Hi,
I was trying to add a file to the existing zip file and i was using the below command but could not able to succeed. Could you please throw some light on this. Thanks for your time.
Syntax
zip 20081029.zip Siebel_DW_Rep_Dev2_20081016.rep
Error message:
zip warning: missing end signature--probably not a zip file (did you
zip warning: remember to use binary mode when you transferred it?)
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello..
I have a text file with 100 lines of data.
I need to add 1 line of data to that already existing file at the first line( beginning of the file) , so that the already existing 100 lines will start from 2 nd line.Now the file will have 101 lines of data.
Help me on how to add the line... (4 Replies)
Discussion started by: charan81
4 Replies
2. Shell Programming and Scripting
Hi Unix Experts,
I like to add the following multiple lines in an existing file:
CHANNELS:
MaxChannels=600
MaxActiveChannels=600
MaxInitiators=22
I would be highly appreciated if somebody can shed some light on it.
Thank you in advance!!!
Khan (5 Replies)
Discussion started by: hkhan12
5 Replies
3. UNIX for Dummies Questions & Answers
Hello,
What is the command to add files to an existing tar file.
Thanks, (5 Replies)
Discussion started by: Nomaad
5 Replies
4. Shell Programming and Scripting
Hi guys,
Please help me if u have some solution.
I have a file with three columns separated by ':' -
INPUT_FILE
C416722_2 : calin Dirigent : Dirigent
AC4174_6 : Jac : cal_co
TC4260_5 : [no : lin kite
BC426302_1 : [no : calin Dirigent lin
JC426540_3 : lin Pymo_bin : calin
TC428_3 : no7... (4 Replies)
Discussion started by: sam_2921
4 Replies
5. UNIX for Dummies Questions & Answers
i have a file called motors with 3 columns separated with tabs eg:
car make reg
i want to create a executable file that will add a line with data eg:
car make reg
benz s600 t35778
can you please show me how to do this? (7 Replies)
Discussion started by: fletcher
7 Replies
6. Shell Programming and Scripting
Hi,
I know how to extract a particular files from the tar content. But, I am not sure, is it possible to do the same in zip.
Also, may i know is there a way to add a file to tar or zip content without extracting them. (2 Replies)
Discussion started by: gsiva
2 Replies
7. Shell Programming and Scripting
Hi!
I would need some help to add the last two columns of one file into another file using awk (or something similar).
For example, I have:
file 1: file 2:
car book day root lag
bar look pay boot tag
tar took may moot sag
I want to have:... (5 Replies)
Discussion started by: coconaza
5 Replies
8. Ubuntu
Hi All
I need to add a column on my existing data file. I know similar posts are there but none of them were meeting my requirement. My input is
1.20 3.44 4.88
5.11 4.99 3.22
1.89 3.89 2.90
Desired output
1 1.20 3.44 4.88
2 5.11 4.99 3.22
3 1.89 3.89 2.90
I will... (2 Replies)
Discussion started by: mahbub03
2 Replies
9. Shell Programming and Scripting
I have two files which has one column comman in them.
The two files has exact same number of rows in the same sequence.
I want to add the second column of Users_detail_servicesonly.txt as last column in the existing file.
1) Users_detail_complete.txt
V0135 Memb Info ... (4 Replies)
Discussion started by: Sanjeev Yadav
4 Replies
10. Shell Programming and Scripting
Input File 1
cat S1.txt
MI0043 2731 miR-1
Input File 2
cat S4.txt
MI006 310 CiR-1
MI057 10 CiR-24
MI750 5 CiR-24
Desired Output File 1
cat S1.txt.out
MI0043 2731 miR-1 S1.txt
Desired Output File 2
cat S4.txt.out
MI006 310 CiR-1 S4.txt (3 Replies)
Discussion started by: perl_beginner
3 Replies
LEARN ABOUT CENTOS
zip_open
ZIP_OPEN(3) Library Functions Manual ZIP_OPEN(3)
NAME
zip_open - open zip archive
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
struct zip * zip_open(const char *path, int flags, int *errorp);
DESCRIPTION
The zip archive specified by path is opened and a pointer to a
struct zip, used to manipulate the archive, is returned. The are specified by or'ing the following values, or 0 for none of them.
ZIP_CREATE Create the archive if it does not exist.
ZIP_EXCL Error if archive already exists.
ZIP_CHECKCONS Perform additional consistency checks on the archive, and error if they fail.
If an error occurs and errorp is non-NULL, it will be set to the corresponding error code.
RETURN VALUES
Upon successful completion zip_open returns a
struct zip pointer. Otherwise, NULL is returned and *errorp is set to indicate the error.
ERRORS
The archive specified by path is opened unless:
[ZIP_ER_EXISTS]
The file specified by path exists and ZIP_EXCL is set.
[ZIP_ER_INCONS]
Inconsistencies were found in the file specified by path and ZIP_CHECKCONS was specified.
[ZIP_ER_INVAL]
The path argument is NULL.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
[ZIP_ER_NOENT]
The file specified by path does not exist and ZIP_CREATE is not set.
[ZIP_ER_NOZIP]
The file specified by path is not a zip archive.
[ZIP_ER_OPEN]
The file specified by path could not be opened.
[ZIP_ER_READ]
A read error occurred; see for details.
[ZIP_ER_SEEK]
The file specified by path does not allow seeks.
SEE ALSO
libzip(3), zip_close(3), zip_error_to_str(3), zip_fdopen(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 15, 2009 ZIP_OPEN(3)