10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I am trying to use a hard coded script into shell scripting but I am unable to .
Kindly find the Script below along with the command Please help
gunzip -c FilePath/FileName_*.gz | awk '$0 > "" && $0 < ""'|\
gzip >> FilePath/Outputfile.log.gz
I Am trying to use this... (9 Replies)
Discussion started by: pulkitbahl
9 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
i have a gzipped file. <file_name>.gz . when i try gunzip this file i get,
invalid compressed data--format violated
this file gzipped like gzip -f -S <file_name> 2 > <error_log_file>
there is no error in log. it seems that the file gzipped properly. how this
... (3 Replies)
Discussion started by: dummydba
3 Replies
3. Solaris
Can anyone explains me what is the basic functionality of Netprobe service. How to find the netprobe status whether it is running or stopped.. Only start|stop|restart option is there. (5 Replies)
Discussion started by: rogerben
5 Replies
4. UNIX for Dummies Questions & Answers
Hi ,
I have a doubt reg SCP . For eg.. FileA is in host1 .Is it possible to receive fileA by logging to host2 using SCP.. Please let me know what is the major difference between scp and sftp.. We can use both for file transfer(correct me if am wrong) (4 Replies)
Discussion started by: rogerben
4 Replies
5. Solaris
Hi
When setting minfree to a certain percentage using the tunefs command, does this actually prevent users from accesing the partition when the limit is reached or not?.. It is a separate file system or not
More clarification regarding minfree will be useful for me . (6 Replies)
Discussion started by: rogerben
6 Replies
6. Solaris
Hi,
I have a doubt reg crontab entries. If the user name is there in /etc/cron.d/cron.allow and also in cron.deny file will he able to execute.
if the user is not in both the file means wt will do? (2 Replies)
Discussion started by: rogerben
2 Replies
7. UNIX for Dummies Questions & Answers
Environment:
ServerA - IBM AIX 5.2
ServerB - IBM AIX 5.2
I want to clone one of my oracle installation. The easiest way is to ZIP(possibly use gzip) the installed folder from the ServerA (Here Oracle is installed and working fine) , FTP to the ServerB(Here I want to have the installation... (4 Replies)
Discussion started by: aixhp
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am getting this error
gunzip file1.tar.Z
gunzip: file1.tar.Z: not in gzip format
Any clues? This goes bad only in some recent installations of ids (5 Replies)
Discussion started by: eagercyber
5 Replies
9. Shell Programming and Scripting
Hi ,
I want gzip a folder te55 which has got 3 files test1.test2,test3
the name of the gzipped folder should be te55.gz with the 3 files as test1,test2,test3 itself...
Is it possible...
thanks in advance
sam (5 Replies)
Discussion started by: sam99
5 Replies
10. HP-UX
Hello evrebody ,
I have HPUX-11, i try to install "Mozilla" and "unzip utillity"
I cannot decompress file (F.tar.gz) or file(F.gz) by commandes:
gunzip -dv F.tar.gz | tar -xvf
gunzip F.tar.gz
or
gzip -dv F.tar.gz |tar -xvf
gzip F.gz
maybe someone know What's the reason?
maybe i... (1 Reply)
Discussion started by: yanly64
1 Replies
gzip(3pm) User Contributed Perl Documentation gzip(3pm)
NAME
PerlIO::gzip - Perl extension to provide a PerlIO layer to gzip/gunzip
SYNOPSIS
use PerlIO::gzip;
open FOO, "<:gzip", "file.gz" or die $!;
print while <FOO>; # And it will be uncompressed...
binmode FOO, ":gzip(none)" # Starts reading deflate stream from here on
DESCRIPTION
PerlIO::gzip provides a PerlIO layer that manipulates files in the format used by the "gzip" program. Compression and Decompression are
implemented, but not together. If you attempt to open a file for reading and writing the open will fail.
EXPORT
PerlIO::gzip exports no subroutines or symbols, just a perl layer "gzip"
LAYER ARGUMENTS
The "gzip" layer takes a comma separated list of arguments. 4 exclusive options choose the header checking mode:
gzip
The default. Expects a standard gzip file header for reading, writes a standard gzip file header.
none
Expects or writes no file header; assumes the file handle is immediately a deflate stream (eg as would be found inside a "zip" file)
auto
Potentially dangerous. If the first two bytes match the "gzip" header "x1fx8b" then a gzip header is assumed (and checked) else a
deflate stream is assumed. No different from gzip on writing.
autopop
Potentially dangerous. If the first two bytes match the "gzip" header "x1fx8b" then a gzip header is assumed (and checked) else the
layer is silently popped. This results in gzip files being transparently decompressed, other files being treated normally. Of course,
this has sides effects such as File::Copy becoming gunzip, and File::Compare comparing the uncompressed contents of files.
In autopop mode Opening a handle for writing (or reading and writing) will cause the gzip layer to automatically be popped.
Optionally you can add this flag:
lazy
For reading, defer header checking until the first read. For writing, don't write a header until the first buffer empty of compressed
data to disk. (and don't write anything at all if no data was written to the handle)
By default, gzip header checking is done before the "open" (or "binmode") returns, so if an error is detected in the gzip header the
"open" or "binmode" will fail. However, this will require reading some data, or writing a header. With lazy set on a file opened for
reading the check is deferred until the first read so the "open" should always succeed, but any problems with the header will cause an
error on read.
open FOO, "<:gzip(lazy)", "file.gz" or die $!; # Dangerous.
while (<FOO>) {
print;
} # Whoa. Bad. You're not distinguishing between errors and EOF.
If you're not careful you won't spot the errors - like the example above you'll think you got end of file.
lazy is ignored if you are in autopop mode.
AUTHOR
Nicholas Clark, <nwc10+perlio-gzip@colon.colondot.net>
SEE ALSO
perl, gzip, rfc 1952 <http://www.ietf.org/rfc/rfc1952.txt> (the gzip file format specification), rfc 1951
<http://www.ietf.org/rfc/rfc1951.txt> (DEFLATE compressed data format specification)
perl v5.14.2 2006-10-01 gzip(3pm)