11-17-2017
gz is not zip, just a distant relative of it. If you want a zip file, compress it with zip as apmcd47 suggests.
Or you could use the free
7-zip application on Windows, which should know what to do with gz files.
It's also possible the file got corrupted during transfer. Did you FTP it over? Be sure to set binary mode on your FTP client before downloading.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all I am new to unix . I need to write a script that extracts some data from oracle into a .csv file with heading of the columns in the file
SO i created the following two scripts but they are not working
ac.sql (this is the sql file that i will call inside the shell script when i run... (1 Reply)
Discussion started by: rajesh_tns
1 Replies
2. Shell Programming and Scripting
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
Discussion started by: ss_ss
2 Replies
3. Shell Programming and Scripting
hi,
i have a situation where i have a csv file in the format
date,name
eg:
1284631889869,a
1284631889879,b
1284631889459,c
.
.
.
.
.
.
.
now i take a time and an interval from user. (5 Replies)
Discussion started by: niteesh_!7
5 Replies
4. Shell Programming and Scripting
Hello everybody,
Here is my problem, I don't know anything about shell programming and my boss is actually asking me to develop a shell script in order to get values in a csv file from a specific date.
Here is a sample of the csv file :
Date;Enchaînement;Titre;Libellé ;calendrier;Heure début;Heure... (11 Replies)
Discussion started by: freyr
11 Replies
5. UNIX for Dummies Questions & Answers
Hi everyone,
i am new to perl programming, i have a problem in extracting single column from csv file. the column is the 20th column,
please help me..
at present i use this code
#!C:/perl/bin
use warnings;
use strict;
my $file1 = $ARGV;
open FILE1, "<$file1"
or die "Can't... (13 Replies)
Discussion started by: kvth
13 Replies
6. Shell Programming and Scripting
How do I extract the last cell in a column of a csv file using linux shell scripting?
Or alternatively, how do I get the number of cells of a csv file? (2 Replies)
Discussion started by: locoroco
2 Replies
7. Shell Programming and Scripting
I have a csv file that I need to extract some data from depending on another field after reading info from another text file.
The text file would say have 592560 in it.
The csv file may have some data like so
Field 1 Field2 Field3 Field4 Field5 Field6
20009756 1 ... (9 Replies)
Discussion started by: GroveTuckey
9 Replies
8. Shell Programming and Scripting
Hi friend i have input as following XML file
<?xml version="1.0"?>
<Document xmlns="urn:iso:std:iso:20022:tech:xsd:camt.054.001.02">
<BkToCstmrDbtCdtNtfctn>
<GrpHdr><MsgId>LBP-RDJ-TE000000-130042430010001001</MsgId><CreDtTm>2013-01-04T03:21:30</CreDtTm></GrpHdr>... (3 Replies)
Discussion started by: mohan sharma
3 Replies
9. Shell Programming and Scripting
I want to extract IP address, system ID and engine IDs of this file ( marked in red) and put in a csv. E.g.
1.1.1.1, SYSTEMID, 000012345678981123548912
I get these file by running an expect script from solaris.
Here is the text file output of my expect script.
working on 1.1.1.1
SNMP... (5 Replies)
Discussion started by: pbshillong
5 Replies
10. Shell Programming and Scripting
Hi,
I have a log file (log.txt) that which contains lines of date/time.
I need to create a script to extract a CSV file (out.csv) that gets all the sequential times (with only 1 minute difference) together by stating the start time and end time of this period.
Sample log file (log.txt)
... (7 Replies)
Discussion started by: Mr.Zizo
7 Replies
LEARN ABOUT DEBIAN
zip_replace
ZIP_ADD(3) Library Functions Manual ZIP_ADD(3)
NAME
zip_add , - .Nm zip_replace add file to zip archive or replace file in zip archive
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
zip_int64_t zip_add(struct zip *archive, const char *name); "struct zip_source *source"
int zip_replace(struct zip *archive, zip_uint64_t index); "struct zip_source *source"
DESCRIPTION
The function zip_add adds a file to a zip archive, while zip_replace replaces an existing file in a zip archive. The argument archive
specifies the zip archive to which the file should be added. name is the file's name in the zip archive (for zip_add ), while index speci-
fies which file should be replaced (for zip_replace ). The data is obtained from the source argument. See the zip_source_* functions
cited in SEE ALSO.
RETURN VALUES
Upon successful completion, zip_add returns the index of the new file in the archive, and zip_replace returns 0. Otherwise, -1 is returned
and the error code in archive is set to indicate the error.
EXAMPLES
struct zip_source *s;
if ((s=zip_source_buffer(archive, buffer, len)) == NULL ||
zip_add(archive, name, s) 0) {
zip_source_free(s);
printf("error adding file: %s0, zip_strerror(archive)); }
ERRORS
zip_add and zip_replace fail if:
[ZIP_ER_EXISTS]
There is already a file called name in the archive. (Only applies to zip_add ).
[ZIP_ER_INVAL]
source or name are NULL, or index is invalid.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
SEE ALSO
libzip(3), zip_source_file(3), zip_source_filep(3), zip_source_function(3), zip_source_zip(3)
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH March 10, 2009 ZIP_ADD(3)