See also sgf, sgfcharset, sgfcheck, sgfcmp, sgfdb, sgfdbinfo, sgfinfo, sgfsplit, sgfstrip, sgftf, sgftopng, sgfvarsplit, sgfx, ugi2sgf.
% sgfmerge [-c] [-d] [-m1] [files]Take one or more SGF files and merge them. Little auxiliary utility used to combine several descriptions of the same game. All variations are stripped. Also the non-move properties are stripped everywhere, except from the first and last nodes. This makes
sgfmerge < single_fileuseful.
% sgfmerge LeeChangho-ChoHunhyun37450.sgf LeeChangHo-ChoHunHyun9201.sgf sgfmerge LeeChangHo-ChoHunHyun9201.sgf: different moves (#23) ql and rl % sgfmerge -m1 LeeChangho-ChoHunhyun37450.sgf LeeChangHo-ChoHunHyun9201.sgf ... GC[Some sources have B 23 at rl] ;B[pd];W[dc];B[dp];W[qp];B[oq];W[jq];B[gq];W[mq];B[ce];W[cn] ;B[cp];W[ck];B[ci];W[cg];B[bg];W[gc];B[fd];W[fc];B[cc];W[cb] ;B[dd];W[ec];B[ql];W[po];B[qi];W[pq];B[bl];W[bk];B[bn];W[bf] ...
If you want to combine a number of games, problems, etc. into a single collection, just do
% cat game*.sgf > collection.sgf