Giter Club home page Giter Club logo

linedatachecker's Introduction

#文本行形式数据除错工具

配合之前写的DatabaseImport使用。用来检查每一行都已经格式化好了的数据文件(这个工具会扫描文件夹下面所有的.txt文件)并输出到目的文件夹

java -jar LineDataChecker.jar -s [source dir] -o [output dir] -r [regex] -pr [t/f] [-po output dir]
java -jar LineDataChecker.jar -s [source dir] -o [output dir] -sc [split char] -fc [field count] -pr [t/f] [-po output dir]
java -jar LineDataChecker.jar -s [source dir] -o [output dir] -sc [split char] -fcr [field count range] -pr [t/f] [-po output dir]

-s   | --source             源文件夹
-o   | --output             目标输出文件夹
-r   | --regex              使用Java格式的正则表达式检查(转义字符要写两次)
-sc  | --split-char         使用字段格式检查,设置字段分隔符(可以使用诸如\t \r这种)
-fc  | --field-count        每行的字段数量
-fcr | --field-count-range  字段数量用范围代替
-po  | --problem-output     设置把不符合的行输出到哪里
-pr  | --pre-load           预读取模式,会先把文件读入到内存
-h   | --help               帮助信息

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.