Sponsored Content
Full Discussion: how to compress .zlib file
Top Forums UNIX for Advanced & Expert Users how to compress .zlib file Post 302191803 by era on Monday 5th of May 2008 02:52:49 AM
Old 05-05-2008
If you can find a specific compressor for just that format, it's probably going to be more efficient than any general-purpose compression tool. In the meantime, try bzip2, it's often more efficient than the ones you tried.

See also Comparison of file archivers - Wikipedia, the free encyclopedia
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[help] Cant compress file

Anybody know what happened here? 162 lab2-36:~/try_direct/another> compress url.txt url.txt: -- file unchanged (8 Replies)
Discussion started by: endeavour1985
8 Replies

2. Programming

uncompress of zlib

When I gzopen & gzread from a gzip file, it works OK. But I when I try to uncompress the same data from memory (either by reading to memory with fread or mmap()ing) using decompress, I get Z_DATA_ERROR. Is it because gzip file has some kind of headers that uncompress doesn't want? How can I get... (3 Replies)
Discussion started by: rayne
3 Replies

3. Programming

problem about using zlib to uncompress gzip in memory

I wrote a function which for uncompressing data for gzip or deflate format using zlib,see followed code; source param is pointed to the compressed data,len param is the size of compressed data, dest param is for returning the address which pointed to the uncompressed data;the last gzip param tell... (0 Replies)
Discussion started by: iwishfine
0 Replies

4. UNIX for Advanced & Expert Users

compress more than one file

hi, I need to compress a couple files in a directory.i tried using tar cvf filename1 filename2 but i am not able to open tar file. please suggest how to compress more than one file in to same file thanks in advance (2 Replies)
Discussion started by: prasee
2 Replies

5. Shell Programming and Scripting

unix script to takes the old data from a TXT file and compress them into new file

Hi, I am looking for the unix script which can takes the 2 month old data from a TXT file (there is one txt file in whiche messages are appended on daily basis) and compress them into new file.Please halp me out. (2 Replies)
Discussion started by: vpandey
2 Replies

6. UNIX for Dummies Questions & Answers

Issue: Compress in unix server and FTP to windows and open the compress file using Winzip

Hi All ! We have to compress a big data file in unix server and transfer it to windows and uncompress it using winzip in windows. I have used the utility ZIP like the below. zip -e <newfilename> df2_test_extract.dat but when I compress files greater than 4 gb using zip utility, it... (4 Replies)
Discussion started by: sakthifire
4 Replies

7. BSD

Installing zlib

Is there a port or shorthand way of installing the zlib library on FreeBSD? I currently use the following: wget http://zlib.net/zlib-1.2.5.tar.gz tar zxf zlib*.gz cd zlib*\. ./configure --libdir=/usr/lib --includedir=/usr/include make install clean This is somewhat contrived code and for a... (4 Replies)
Discussion started by: figaro
4 Replies

8. Shell Programming and Scripting

zlib.h in custom path

I am trying to configure gpac. I get the error as follows. # ./configure error: zlib not found on system or in local libs I have installed zlib on custom path /usr/local/myapps. I know the above error occurs when devel package or .h file is not present. Its present on the server. # ll... (7 Replies)
Discussion started by: anilcliff
7 Replies

9. UNIX for Advanced & Expert Users

Problem compiling glib using static zlib

Hello I have been trying to compile glib 2.28 with needs Zlib. During the compilation process I received these messages Then giving a look at the configure of Zlib, there was an option to static link it and I obviously used it. So I think I can solve it by compiling a shared zlib, or by... (4 Replies)
Discussion started by: colt
4 Replies

10. Shell Programming and Scripting

Compress every file

Dear Experts, I am new to this forum. Thank you for moderator to allow me to join. I have a question about automatic compression using sh and crontab on an application which runs on the Suse Linux Server 11 SP4. My question is how to compress every file in a directory into its own tar... (5 Replies)
Discussion started by: Steven_2975
5 Replies
PerlIO::via::Bzip2(3)					User Contributed Perl Documentation				     PerlIO::via::Bzip2(3)

NAME
PerlIO::via::Bzip2 - PerlIO layer for Bzip2 (de)compression SYNOPSIS
use PerlIO::via::Bzip2; # or use PerlIO::via::Bzip2 level => 9; # Maximum compression # Read a bzip2 compressed file from disk. open(my $fh, "<:via(Bzip2)", "compressed_file"); my $uncompressed_data = <$fh>; # Compress data on-the-fly to a bzip2 compressed file on disk. open(my $fh, ">:via(Bzip2)", "compressed_file"); print {$fh} $uncompressed_data; # Set compression level PerlIO::via::Bzip2->level(5); open(my $fh, ">:via(Bzip2)", "compressed_file"); print {$fh} $uncompressed_data; DESCRIPTION
This module implements a PerlIO layer which will let you handle bzip2 compressed files transparently. Class Methods level([$level]) level sets or returns the compression level of the bzip2 library. It ranges from 1 (least compression, most efficient memory use) to 9 (best compression, most memory usage). This parameter can also be set during using library import, using "use PerlIO::via::Bzip2 level => $level". BUGS
Using binmode() on an opened file for compression will pop (remove) the layer. PREREQUISITES
This module requires Compress::Bzip2 version 1.03. SEE ALSO
PerlIO::via, Compress::Bzip2 AUTHOR
Arjen Laarhoven, <arjen@cpan.org> COPYRIGHT AND LICENSE
Copyright (C) 2005 by Arjen Laarhoven This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2005-03-04 PerlIO::via::Bzip2(3)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy