See also sgf, sgfcharset, sgfcmp, sgfdb, sgfdbinfo, sgfinfo, sgfmerge, sgfsplit, sgfstrip, sgftf, sgftopng, sgfvarsplit, sgfx, ugi2sgf.
% sgfcheck [-okfn] [-nokfn] [-r] [-e ext] [infiles/indirs]The program sgfcheck reads SGF files and checks them, muttering about flaws or possible flaws such as
premature eof gametree must start with '(' gametree does not end with ')' move property in root node move and setup properties in the same node duplicated tag nonstandard RE property KM and RE do not differ by an integer not a valid move play on nonempty position moves 114 and 115 were both played by W illegal ko recapture cycle: position after move 286 equals that after move 278 suicide mass suicideComplaints are printed to stderr.
Options:
Examples:
% sgfcheck -r . 2>&1 | grep suicidefinds the games where a suicide occurs.
% sgfcheck -nokfn -r . 2>/dev/null | wc -lcounts how many game records are bad.