mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
Fix minor typo (#1673)
This commit is contained in:
parent
31d6164181
commit
5cd457d565
2 changed files with 2 additions and 2 deletions
|
|
@ -209,7 +209,7 @@ So, take this sum/count example as an indication of the kinds of things you can
|
|||
Also inspired by [AWK](https://en.wikipedia.org/wiki/AWK), the Miller DSL has the following special [**context variables**](reference-dsl-variables.md#built-in-variables):
|
||||
|
||||
* `FILENAME` -- the filename the current record came from. Especially useful in things like `mlr ... *.csv`.
|
||||
* `FILENUM` -- similarly, but integer 1,2,3,... rather than filenam.e
|
||||
* `FILENUM` -- similarly, but integer 1,2,3,... rather than filename.
|
||||
* `NF` -- the number of fields in the current record. Note that if you assign `$newcolumn = some value` then `NF` will increment.
|
||||
* `NR` -- starting from 1, counter of how many records processed so far.
|
||||
* `FNR` -- similar, but resets to 1 at the start of each file.
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ So, take this sum/count example as an indication of the kinds of things you can
|
|||
Also inspired by [AWK](https://en.wikipedia.org/wiki/AWK), the Miller DSL has the following special [**context variables**](reference-dsl-variables.md#built-in-variables):
|
||||
|
||||
* `FILENAME` -- the filename the current record came from. Especially useful in things like `mlr ... *.csv`.
|
||||
* `FILENUM` -- similarly, but integer 1,2,3,... rather than filenam.e
|
||||
* `FILENUM` -- similarly, but integer 1,2,3,... rather than filename.
|
||||
* `NF` -- the number of fields in the current record. Note that if you assign `$newcolumn = some value` then `NF` will increment.
|
||||
* `NR` -- starting from 1, counter of how many records processed so far.
|
||||
* `FNR` -- similar, but resets to 1 at the start of each file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue