wilsonfreitas / csvgrep

Easy and funny searches on text delimited files
http://wilsonfreitas.github.io/csvgrep
MIT License
5 stars 1 forks source link

Range functions #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The range functions are expression functions used with range references.
For now I have the following suggestions

@all ${7,8,19,20} eq /^$/ evaluates to true if each column in the range
evaluates to true in the boolean expression. It is similar to the AND clause.

@any ${7,8,19,20} eq "^$" evaluates to true if at least one column in the
range evaluates its boolean expression to true. It is similar to the OR clause.

@none ${7,8,19,20} eq /^$/ evaluates to true if each column in the range
evaluates to false in the boolean expression. It is similar to the XOR clause.

Perhaps the @not function should be used together with those functions

@not @all ${7,8,19,20} eq /^$/

@not @any ${7,8,19,20} eq "^$"

@not @none ${7,8,19,20} eq /^$/

Original issue reported on code.google.com by wilson.freitas on 9 Jul 2012 at 6:15