NAUTY-SUMLINES(1)
π NAUTY-SUMLINES π
okay so this is the page for nauty-sumlines from the nauty manual β yes bestie, the one that's all about sumlines, and it's lowkey iconic. let's get into it π
β¨ NAME β¨
nauty-sumlines β sum lines matching specified graph formats π¦
πΈ SYNOPSIS πΈ
sumlines [-w|-W] [-v] [-d] [-n] [-f fmtfile]... file file file ...
π DESCRIPTION π
okay so the whole vibe: it sums up lines that match the formats you specify. that's the gig. π«Ά
you can throw any number of input files at it, fr fr.
-means stdin. yes, just a lil dash.- if there are no files given, it just assumes stdin. that's it, that's the default.
- file names can contain wildcards, and in that case every matching file gets used β in numerically sorted order, no cap.
π where the formats come from π
bestie, the formats get read from four sources, and the order matters, so pay attention π
- any files mentioned with
-fon the command line (any number of them). - the file named in the environment variable
SUMLINES.FMT(if any). - the file
sumlines.fmtin the current directory (if it exists). - the file
sumlines.fmtin the home directory (if it exists).
all of these are read if they exist, and the results are concatenated. and here's the tea: formats that exactly match earlier formats (except perhaps for flags) are not used. like, we already have that one, moving on π
π§ how a format is shaped π§
each format occupies exactly two lines, periodt.
- the first line gives a list of flags:
DEFAULTFINALERRORUNIQUECOUNTCONTINUENUMERICSILENTENDFILEP=#NOPREFIXBEFORE/.../AFTER/.../β separated by spaces, commas or|s. - the second line gives the format itself.
β οΈ heads up bestie: there can also be blank lines and lines with only comments β but not between the flags line and the format itself. the two of them are a package deal, don't separate them π
π example π
this totals the summary lines of autoson runs:
DEFAULT
# comment
cpu=%fu,%fs,%fx
pf=%d
π OPTIONS π
-dβ don't readsumlines.fmtor~/sumlines.fmtor$SUMLINES.FMT-wβ suppresses warning messages about no matching lines or no matching final lines.-Wβ in addition, suppresses warning about missing cases.-nβ don't write the number of matching lines for each format.-vβ produces a list of all the formats.
and that's the whole page, bestie, you ate it π this was nauty version 2.8.9, dated September 2024 β go forth and sum those lines, main character ππ
π¦ where this page comes from
- ubuntu questing: nauty 2.8.9+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms