http://einverne.github.io/post/2017/11/zgrep-grep-gz-file.html
Linux 下按照正则过滤文本的命令 grep 非常强大,grep 能够把正则匹配的行打印出来。而 zgrep 则能够对压缩包内容进行正则匹配。zgrep 全称是 search compressed files for a regular expression
grep 的命令格式是
grep [option] pattern files
他的工作方式是,在一个或者多个文件中根据正则搜索匹配内容,将搜索的结果输出到标准输出,不更改源文件内容。
grep 常用的一些选项
-i 忽略字符大小写区别
-v 显示不包含正则的所有行
关于更多的 grep 的内容可以参考另外一篇文章,zgrep 和 grep 用法类似,不过操作的对象是压缩的内容。支持 bzip2,gzip,lzip, xz 等等。
zgrep 使用
但如果想要过滤 Nginx 的 access_log.gz 的压缩文件的内容,如果先解压,然后过滤出有用的文本,再把文件压缩回去,这就变的非常不方便。
gunzip access_log.gz
grep "/api" access_log
gzip access_log
需要使用三个命令来实现文件的过滤,其实 Linux 下可以使用
zgrep
来一步完成
zgrep "/api" access_log.gz
和 grep 类似,
zgrep
也可以指定多个文件同时进行搜索过滤
zgrep "/api" access_log.gz access_log_1.gz
既然提到了不解压搜索压缩包内容,
.gz
的文件可以使用
zgrep
,而对于
.tar.gz
文件
zcat access.tar.gz | grep -a '/api'
zgrep -a "/api" access.tar.gz
其实这些带
z
的命令都包含在 Zutils 这个工具包中,这个工具包还提供了
zcat 解压文件并将内容输出到标准输出
zcmp 解压文件并且 byte by byte 比较两个文件
zdiff 解压文件并且 line by line 比较两个文件
zgrep 解压文件并且根据正则搜索文件内容
ztest - Tests integrity of compressed files.
zupdate - Recompresses files to lzip format.
这些命令支持 bzip2, gzip, lzip and xz 格式。
http://einverne.github.io/post/2017/11/zgrep-grep-gz-file.htmlLinux 下按照正则过滤文本的命令 grep 非常强大,grep 能够把正则匹配的行打印出来。而 zgrep 则能够对压缩包内容进行正则匹配。zgrep 全称是 search compressed files for a regular expressiongrep...
使用方法:
1、将需要一机一码
解压
的 文件压缩成
压缩包
,并 设置较强的
解压
密码
2、将
压缩包
和一机一码
解压
程序 一同 给予对方,对方 运行 一机一码
解压
程序 ,将得到的 特征码 发给给你
3、将需要授权的 特征码 与 压缩文件 的
解压
密码依次输入,点击 计算授权码 即可得出一机一码
解压
码
对特征码和
压缩包
解压
密码合并RC4加密得到一机一码
解压
码,并在一机一码
解压
程序
中
对
解压
码解码比对,若特征码比对成功,则用得到的
解压
密码进行
解压
如果
压缩包
密码设置的一样,就可以一直用
一个
一机一码
解压
码进行
解压
另外,使用易语言编写,外加VMProtect(不然秘钥很容易直接分析出来了还搞个屁),会报毒,介意勿用
解压
程序调用了winrar的外部
命令
,因此需要电脑安装有winrar才行,
解压
程序已经内置了64位和32位的winrar安装程序(安装程序来源来自网络),没有安装的电脑可以直接安装使用
支持格式:理论上winrar支持的格式都是可以支持的
ar、bunzip2、bzip2、bzip2recover、compress、cpio、dump、gunzip、gzexe、gzip、lha、restore、tar、unarj、unzip、zip、zipinfo
diff、diffstat、file、find、git、gitview、ln、locate、lsattr、mattrib、mc、mcopy、mdel、mdir、mktemp、mmove、mread、mren、mshowfat、mtools、mtoolstest、mv、od、paste、patch、rcp、rhmask、rm、slocate、split、tee、tmpwatch、touch、umask、whereis、which、cat、chattr、chgrp、chmod、chown、cksum、cmp、cp、cut、indent
cd、df、dirs、du、edquota、eject、lndir、ls、mcd、mdeltree、mdu、mkdir、mlabel、mmd、mmount、mrd、mzip、pwd、quota、quotacheck、quotaoff、quotaon、repquota、rmdir、rmt、stat、tree、umount
badblocks、cfdisk、dd、e2fsck、ext2ed、fdisk、fsck.ext2、fsck、fsck.minix、fsconf、hdparm、losetup、mbadblocks、mformat、mkbootdisk、mkdosfs、mke2fs、mkfs.ext2、mkfs、mkfs.minix、mkfs.msdos、mkinitrd、mkisofs、mkswap、mpartition、sfdisk、swapoff、swapon、symlinks、sync
alias、apmd、aumix、bind、chkconfig、chroot、clock、crontab、declare、depmod、dircolors、dmesg、enable、eval、export、fbset、grpconv、grpunconv、hwclock、insmod、kbdconfig、lilo、liloconfig、lsmod、minfo、mkkickstart、modinfo、modprobe、mouseconfig、ntsysv、passwd、pwconv、pwunconv、rdate、resize、rmmod、rpm、set、setconsole、setenv、setup、sndconfig、SVGAText Mode、timeconfig、ulimit、unalias、unset
adduser、chfn、chsh、date、exit、finger、free、fwhois、gitps、groupdel、groupmod、halt、id、kill、last、lastb、login、logname、logout、logrotate、newgrp、nice、procinfo、ps、pstree、reboot、renice、rlogin、rsh、rwho、screen、shutdown、sliplogin、su、sudo、suspend、swatch、tload、top、uname、useradd、userconf、userdel、usermod、vlock、w、who、whoami、whois
col、colrm、comm、csplit、ed、e
grep
、ex、f
grep
、fmt、fold、
grep
、ispell、jed、joe、join、look、mtype、pico、r
grep
、sed、sort、spell、tr、uniq、wc
dip、getty、mingetty、ppp-off、smbd(samba daemon)、telnet、uulog、uustat、uux、cu、dnsconf、efax、httpd
1. 安装rar
命令
在Linux系统
中
,可以直接使用rar
命令
来
解压
rar
压缩包
。如果系统
中
没有安装rar
命令
,可以先从RARLAB官网下载Linux版本的rar
命令
进行安装。安装完成后,可以使用以下
命令
来
解压
rar
压缩包
:
rar x filename.rar
其
中
,`filename.rar`是要
解压
的rar文件名。
2. 使用unzip
命令
如果系统
中
已经安装了unzip
命令
,也可以使用该
命令
来
解压
rar
压缩包
。不过需要先将rar文件转换成zip格式,然后再使用unzip
命令
解压
:
rar2zip filename.rar filename.zip
unzip filename.zip
其
中
,`rar2zip`是
一个
将rar文件转换成zip格式的工具,需要先进行安装。`filename.rar`是要
解压
的rar文件名,`filename.zip`是转换后的zip文件名。
解压
完成后,可以删除转换后的zip文件。
LIt9676:
VMware Workstation 15 Pro 激活密钥
2301_76732172:
VMware Workstation 15 Pro 激活密钥
m0_73961830:
VMware Workstation 15 Pro 激活密钥
在Linux下查看HBA卡的速率和状态
weixin_50235077: