From: Mario Blättermann Date: Wed, 3 Sep 2025 17:44:04 +0000 (+0200) Subject: Fix markup, grammar and spelling in scols-filter.5.adoc X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b7679c552c6c1636f9a2505061c72b43d92cbbf0;p=thirdparty%2Futil-linux.git Fix markup, grammar and spelling in scols-filter.5.adoc --- diff --git a/libsmartcols/scols-filter.5.adoc b/libsmartcols/scols-filter.5.adoc index a555d79dd..79921a307 100644 --- a/libsmartcols/scols-filter.5.adoc +++ b/libsmartcols/scols-filter.5.adoc @@ -76,7 +76,7 @@ The filter can be also used for columns which are not used in the output. An expression consists of holders, params, and operators. The currently supported `holder` type is column name only. The name has to be -used without quotes. Before evaluation, application map column names in the +used without quotes. Before evaluation, application maps column names in the given expression to the output table columns and assign column data type to the holder. The default type is "string". @@ -86,7 +86,7 @@ types are integer, float, string and boolean. An operator works with one or two operand(s). An operator has an expectation about the data type(s) of its operands. Giving an unexpected data type to an operator causes a syntax error. The library can cast between data types, the -prefferred is always the type as specified by `param` and in case of expression with +preferred is always the type as specified by `param` and in case of expression with number and float the preferred is the float. Operators taking two operands are `and`, `or`, `eq`, `ne`, `le`, `lt`, `ge`, `gt`, `=~`, `!~`. @@ -94,11 +94,11 @@ Alphabetically named operators have C-language flavored aliases: `&&`, `||`, `==`, `!=`, `<`, `<=`, `>=`, and `>`. `!` is the only operator that takes one operand. If no operator is specified then -expression is true if param or holder are not empty. For example `--filter NAME` will +expression is true if param or holder are not empty. For example *--filter NAME* will return lines where column NAME is not empty. `=~` and `!~` is for regular expression matching; if a string at the right side -matches (or not matches for `!~` a regular expression at the left side, the result +matches (or not matches for `!~` a regular expression at the left side), the result is true. The right side operand must be a string literal. The precedences within operators is `or`, `and`, and `eq`, `ne`, `le`, `gt`, `ge`, `=~`, `!~`, `not`.