]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix markup, grammar and spelling in scols-filter.5.adoc
authorMario Blättermann <mario.blaettermann@gmail.com>
Wed, 3 Sep 2025 17:44:04 +0000 (19:44 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Sep 2025 17:44:04 +0000 (19:44 +0200)
libsmartcols/scols-filter.5.adoc

index a555d79dd380886c8324355eeaf8310e43108d85..79921a307a4a849455c0f0c29d46949e91925fba 100644 (file)
@@ -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`.