首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 二进制的文本搜索文本和gzip压缩的文本文件。

二进制的文本搜索文本和gzip压缩的文本文件。

资 源 简 介

bsearch distinguishes records in a file basing on a regular expression pattern. Each record is converted into an integer using the special characters enclosed in $[ ]. This integer is than used for binary search. The target string must match the pattern enclosed in $[ ]. For the gzipped text files, bsearch creates an index first to be able to randomly access the file. The index is saved into $HOME/.bsearch/index.N file. If you re-run bsearch it will read the index from the file, thus all consequent runs take just a few milliseconds. No more than 10 indexes are stored, bsearch always overrides the oldest one. Examples: bsearch -p "^$[YYYY/MM/DD hh:mm:ss.n+]" -k 1000000 -t "2013/04/16 09:41:25.0" log.txt.gz bsearch -p "^DEBUG | $[YYYY-MM-DD hh:mm:ss,nnn] |" -t "2008-09-06 10:51:45,458" log.txt bsearch -p "^.*? type=data id=$[n+]" -t "43567800001" log.txt.gz bsearch -t "16/04/13 09:41:25.000" -t "16/04/13 10:15:00.000" log

文 件 列 表

bsearch-1.0-opensuse12.3.x86_64
bsearch
README

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.160834s