从映射查询id的主题文件中获取特定行。孟冠良著
extract-specific-lines的Python项目详细描述
提取特定行
1简介
extract_specific_lines
是从主题文件中提取映射查询id(查询文件的)的特定行的工具。
2安装
pip install extract_specific_lines
将在与您的pip
命令相同的目录下创建命令extract_specific_lines
。
3用法
usage: extract_specific_lines.py [-h] [-q <str> [<str> ...]] [-f <query file>]
[-s [<subject file>]] [-s1 <pattern>]
[-s2 <pattern>] [-d1 [<int>]] [-d2 [<int>]]
[-o [<outfile>]] [-v] [-V] [--version]
to extract specific lines from the subject file which maps the query ids.
written by Guanliang MENG
optional arguments:
-h, --help show this help message and exit
-q <str> [<str> ...] query list
-f <query file> query list file
-s [<subject file>] subject file [stdin]
-s1 <pattern> query file sep_pattern [\s+]
-s2 <pattern> subject file sep_pattern [\s+]
-d1 [<int>] which field in the query_file is to used? [0]
-d2 [<int>] which field in the subject_file is to used? [0]
-o [<outfile>] outfile [stdout]
-v invert the output [False]
-V verbose output
--version show program's version number and exit
作者
孟冠良
引文
目前我没有计划发布extract_specific_lines
。