- 帖子
- 3151
- 积分
- 6455
- 技术
- 317
- 捐助
- 70
- 注册时间
- 2008-8-3
|
本帖最后由 523066680 于 2018-1-31 19:43 编辑
楼上的方法好。
本来要写个脚本来着,回头想想 findstr 也可以判断,但感觉文件大且多的时候,耗时会比较长
findstr /M "^Rar!" *
zip 文件头 "\x50\x4b\x03\x04",还是用 grep 吧,
>grep --files-with-matches --directories=skip -P "^\x50\x4b\x03\x04" *
输出匹配的文件列表
pax_global_header.zip
strawberry-perl-5.16.3.1-32bit-portable.zip
strawberry-perl-5.16.3.1-64bit-portable.zip |
-
1
评分人数
-
|