Sponsored Content
Full Discussion: Issue with compressing
Top Forums Shell Programming and Scripting Issue with compressing Post 302548646 by yazu on Friday 19th of August 2011 01:45:53 AM
Old 08-19-2011
Gzipping of zipped files is senselessly (they are already compressed).
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Compressing files

I have never used this command before. I need to use the "compress" command to compress all files located in the subdirectories under the following directories: /home/ftp/inbound/Fordin Please advise, I appreciate your help. Thanks, Syed (3 Replies)
Discussion started by: sh9492
3 Replies

2. UNIX for Dummies Questions & Answers

compressing two files in a script

Hi, i have written a script in unix which produces two files(.csv file) at the end. Now i want to add these to files in a zip file and send the zip file across the network by FTP. Problem is that i dunno how to make a single zip file containing the two files that have been created by the script.... (1 Reply)
Discussion started by: nimish
1 Replies

3. Shell Programming and Scripting

compressing a string

HI, let say I have file having name "skp 27.doc". There is space between skp and 27. now I want to rename this file . So please let me know how is it possible? one more issue ............. let say a=5 echo $a output is 5. Again a= 4 echo $a wha will be the output? (1 Reply)
Discussion started by: surjyap
1 Replies

4. UNIX for Dummies Questions & Answers

Compressing folders

Hi, Is there any way to compress folders as such? May look simple, but I have a folder, which inturn has several folders/files in it. Is there any way to compress this parent folder? Thanks in advance, Mohan. (4 Replies)
Discussion started by: mohanprabu
4 Replies

5. UNIX for Dummies Questions & Answers

compressing a directory

I have a pretty large directory on a backup hard drive. I have Tiger for an OS, what would be the best way to compress this directory. there is a large number of files inside in addition if that makes a difference any help appreciated hopefully thanks in advance (2 Replies)
Discussion started by: cleansing_flame
2 Replies

6. UNIX for Dummies Questions & Answers

Compressing a Directory in UNIX ???

Hi All, I am new to UNIX. I have a small problem to be solved. I have directory where all the log files/list files generated by SAS Program. Q1) Can we compress the folder(Directory) as Windows zipping. Q2) If yes what is the command to be used to achieve the probelm. Q3) If we do... (4 Replies)
Discussion started by: manas6
4 Replies

7. UNIX for Dummies Questions & Answers

Compressing several directories

Could someone help with the easiest command to compress several directories and files? For example, I want two directories: /var/www/logs/ and /var/www/zones/ and this file: /var/www/messages to be compressed by tar/zip to a specific output directory like: /var/www/backup.extension ... (1 Reply)
Discussion started by: holyearth
1 Replies

8. UNIX for Dummies Questions & Answers

Compressing of log files

Hello All My first post in the forum. :) I've this huge log files of size 20GB-30 GB in my unix server. I want to analyse the log file for some error messages. But because of the enormity of the size of these files i'm not able to grep/search the pattern in the file . Also, tried to gzip the... (1 Reply)
Discussion started by: sgbhat
1 Replies

9. Shell Programming and Scripting

Compressing files

I need help to do a script that will compress a file that's bigger than 5000 octets and won't overwrite the previous compress file. lets say I have mylogfile.log and I would compress it I would become mylogfile. 1. log and if I would compress again mylogfile.log it would be mylogfile. 2.... (8 Replies)
Discussion started by: Froob
8 Replies

10. Shell Programming and Scripting

Changing the file name while compressing

Hi, Is there any way to change the file name while compressing ? using Compress and gzip and tar ? Say, I have a file foo.txt - so I have to compress this file and the resultant file name is foo.txt_20130113.gz or foo.txt_20130113.Z This to be done while performing the compression... (2 Replies)
Discussion started by: karumudi7
2 Replies
ZIP_CLOSE(3)						     Library Functions Manual						      ZIP_CLOSE(3)

NAME
zip_close - close zip archive LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> int zip_close(struct zip *archive); DESCRIPTION
The zip_close function closes archive and frees the memory allocated for it. If any files within were changed, those changes are written to disk first. If writing changes fails, zip_close fails and archive is left unchanged. If archive contains no files, the file is com- pletely removed (no empty archive is written). RETURN VALUES
Upon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error. ERRORS
zip_close will fail if: [ZIP_ER_EOF] Unexpected end-of-file found while reading from a file. [ZIP_ER_INTERNAL] The callback function of an added or replaced file returned an error but failed to report which. [ZIP_ER_INVAL] The path argument is NULL. [ZIP_ER_MEMORY] Required memory could not be allocated. [ZIP_ER_NOZIP] File is not a zip archive. [ZIP_ER_READ] A file read failed. [ZIP_ER_RENAME] A temporary file could not be renamed to its final name. [ZIP_ER_SEEK] A file seek failed. [ZIP_ER_TMPOPEN] A temporary file could not be created. [ZIP_ER_WRITE] A file write failed. [ZIP_ER_ZLIB] An error occurred while (de)compressing a stream with zlib(3). Additionally, any errors returned by the callback function for added or replaced files will be passed back. SEE ALSO
libzip(3), zip_error_get(3), zip_fdopen(3), zip_open(3), zip_strerror(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH February 15, 2009 ZIP_CLOSE(3)
All times are GMT -4. The time now is 01:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy