runxinzhi.com
首页
百度搜索
perl 打开和输出gz压缩文件【更新perl打开的时候自动判断是否压缩文件的模块】
open IN,“gzip -dc 文件名 |”
open OUT, "| gzip >$out_f.gz" or die $!;
自动判断是否压缩文件,例子:
use PerlIO::gzip;
open FQ1, "<:gzip(autopop)", "$ARGV[0]" || die "Cannot open $ARGV[0]\n";
利用管道输出文件自动生成压缩文件:
perl a.pl | gzip > out.gz
相关阅读:
Java-Class-FC:java.lang.StringBuilder.java
Java-Class-C:com.github.pagehelper.PageInfo.java
Java-Class-C:com.github.pagehelper.PageHelper.java
Java-Class-E:org.springframework.http.HttpStatus.java
Java-Class-@I:io.swagger.annotation.ApiParam.java
Java-Class-I:javax.servlet.http.HttpServletRequest.java
Java-Class-C:java.util.BigDecimal.java
Code-日期-Java-Class-C:cn.hutool.core.date.DateUtil.java
MongoDB,还有一个角度看数据
飘逸的python
原文地址:https://www.cnblogs.com/xianghang123/p/2167121.html
最新文章
[TypeScript] Understanding Decorators
[TypeScript] Using Typings and Loading From node_modules
[TypeScript] Using Lodash in TypeScript with Typings and SystemJS
[TypeScript ] What Happens to Compiled Interfaces
[CSS] Targeting Elements with CSS Attribute Selectors
[TypeScript] Using Exclude and RootDir until File Globs Lands in 2.0.
[TypeScript] Stopping a TypeScript Build When Errors Are Found
[TypeScript] Configuring TypeScript Which Files to Compile with "Files" and "OutDir"
[置顶] 自娱自乐1之Linux UDC驱动(形式模板)
20130814, 微软8月14日发布8个安全补丁
热门文章
神奇的container_of
An extensible Factory Pattern example
VS2012利用Wix打包问题
ftm时钟源
阿里云服务器性能评测
寻找表达式
XMPPFrameWork IOS 开发(三)登录
项目安排
Java-Class-FC:java.util.Optional.java
Java-Class-I:org.springframework.web.mutipart.MutipartFile.java
Copyright © 2020-2023
润新知