D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
usr
/
share
/
doc
/
perl-IO-Compress
/
io
/
gzip
/
Filename :
gzcat
back
Copy
#!/usr/bin/perl use IO::Uncompress::Gunzip qw( $GunzipError ); use strict ; use warnings ; #die "Usage: gzcat file...\n" # unless @ARGV ; my $file ; my $buffer ; my $s; @ARGV = '-' unless @ARGV ; foreach $file (@ARGV) { my $gz = new IO::Uncompress::Gunzip $file or die "Cannot open $file: $GunzipError\n" ; print $buffer while ($s = $gz->read($buffer)) > 0 ; die "Error reading from $file: $GunzipError\n" if $s < 0 ; $gz->close() ; }
Name
Size
Last Modified
Owner
Permissions
Actions
gzappend
0.39
KB
October 13 2019 9:48:19
root
0644
gzcat
0.486
KB
October 13 2019 9:48:19
root
0644
gzgrep
0.777
KB
October 13 2019 9:48:19
root
0644
gzstream
0.503
KB
October 13 2019 9:48:19
root
0644
2017 © D7net | D704T team