cdbflite使用/ filter查找空行

时间:2016-12-15 15:24:00

标签: file filter dbf

我有一个文件user.dbf,我想过滤掉所有空的邮件,我在互联网上搜索了一种过滤空字段的方法,但没有成功。

user.dbf : id ; username ; password ; mail

使用cdbflite软件,我尝试使用此命令:

cdbflite.exe user.dbf /filter:mail=' ' /select:id,username > log.csv

但它返回:无效的过滤器

请帮助我:'(

1 个答案:

答案 0 :(得分:0)

摘自http://www.whitetown.com/cdbflite/cl/

    /filter:condition
    /f:condition

    Installation of the filter. The filter allows to select of some
    records which satisfying to some condition. Allowable to use several
    conditions in one filter and/or some filters. In the latter case they
    was united as condition 'AND'. For example:

    /filter:name=Smith - to select people with name "Smith"

    /filter:name=Smith&age>30   - to select people with name "Smith" and
                                  age more them 30 year

    /filter:name=Smith&age{30   - to select people with name "Smith" and
                                  age less them 30 year

    /filter:name=Smith;name=Gates - to select people with name "Smith" or
                                    "Gates"

    /filter:name=Smith|name=Gates - to select people with name "Smith" or
                                    "Gates"

    /filter:name~uck - to select people, containing a substring "uck".

    /filter:name=A /filter:age=30 - it's same as
    /filter:name=A&age=30

   If the compared expression contains blanks, you should to conclude
   expression in quotes.

    /filter:name="John Smith"

作为猜测,尝试使用双引号并尝试在它们之间没有空格:

/filter:mail=""

如果这不起作用,我认为不可能。