Skip to content

Commit

Permalink
Fix minor typo (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinletson authored Oct 5, 2024
1 parent 31d6164 commit 5cd457d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/miller-programming-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion docs/src/miller-programming-language.md.in
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5cd457d

Please sign in to comment.