NAUTY-SUMLINES(1)

πŸ“¦
version 2.8.9 Β· 5 versions
, in ubuntu questing

πŸŽ€ 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 πŸ‘‘

  1. any files mentioned with -f on the command line (any number of them).
  2. the file named in the environment variable SUMLINES.FMT (if any).
  3. the file sumlines.fmt in the current directory (if it exists).
  4. the file sumlines.fmt in 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: DEFAULT FINAL ERROR UNIQUE COUNT CONTINUE NUMERIC SILENT ENDFILE P=# NOPREFIX BEFORE/.../ 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 read sumlines.fmt or ~/sumlines.fmt or $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