miller/docs6b/docs/data/maxrows.mlr
John Kerl ab84ecd561 First pass at converting Miller 6 docs from Sphinx to Mkdocs (#616)
* Accept more passing emit cases

* Port docs from sphinx to mkdocs

* iterating

* rephrase internal-link syntax using mkdocs

* iterating
2021-08-12 13:41:04 -03:00

15 lines
319 B
Text

# Retain all records
@records[NR] = $*;
# Track max value of n
@maxn = max(@maxn, $n);
# After all records have been read, loop through retained records
# and print those with the max n value.
end {
for (nr in @records) {
map record = @records[nr];
if (record["n"] == @maxn) {
emit record;
}
}
}