See also sgf, sgfcharset, sgfcheck, sgfcmp, sgfdb, sgfdbinfo, sgfinfo, sgfmerge, sgfsplit, sgfstrip, sgftf, sgftopng, sgfx, ugi2sgf.
% sgfvarsplit [-g#] [-v#] [-d#] [-s#] [-z] [-x prefix] [-F format] [files]
The utility sgfvarsplit reads an SGF file containing a game and splits it into files each containing a single variation. The output files get names produced from a format, by default "var-%03d.sgf" and a counter that counts from 1: var-001.sgf, var-002.sgf, ...
Options:
% sgftopng -info tesujilecture7.sgf Game #1 var 1: (1-0 (1-1 (2-3 (4-11) var 2: (4-4 (5-10) var 3: (5-5 (6-13) var 4: (6-6))) ... var 31: (9-12))))) % sgfvarsplit < tesujilecture7.sgf % ls -1 v* var-001.sgf var-002.sgf ... var-031.sgf % sgfvarsplit -x Kogo- -v 7687 "Kogo's Joseki Dictionary.sgf" % ls -1 K* Kogo's Joseki Dictionary.sgf Kogo-7687.sgf