从映射查询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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java游戏!框架伪造应用程序它实际上做什么?   java如何在JavaFx中显示表视图中的即时更改?   对象类的equals()方法的java重载   xpages介绍如何部署java。IBM Notes中的策略更改   java如何访问侦听器中的另一个视图?   java getDefaultDisplay()的替代方法是什么   java opencv匹配模板   java Android Firebase写入数据时的常量超时   在Java中,如何将包含大量空格的数字字符串转换为一系列Int变量。   带有GUI的swing Java模拟无法运行模拟   java NoSuchElementException在特定的Web端上使用无头铬和硒   java对文件进行迭代,即使文件在目录中也会出现“未找到文件”异常。你能告诉我为什么吗?谢谢   递归Java 8,匿名递归嵌套方法   java为什么我看到枚举常量的字段值会被序列化/反序列化?在哪种情况下,枚举中哪些内容没有序列化?   java在运行sonar scanner和Spotbugs规则时出错,用于单片项目?   java如何检查硬件键盘是否可用?(黑莓)   tile游戏动作侦听器循环中的java错误   sockets Java线程池与高请求场景中的新线程   java如何使用Hibernate注释在联接表上创建索引?