Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Tool to cut all games of a database?

Author: Jeff Lischer

Date: 19:49:58 11/09/05

Go up one level in this thread


On November 09, 2005 at 19:11:44, Dieter Eberle wrote:

>Hi,
>does anyone know a tool or method to cut all games of a database (pgn or cbh)
>to a certain number of moves?
>Regards Dieter

In addition to the options already suggested, you can you the command line
program pgnsplit.exe. It's available at http://utilities.sjakk.biz/

Here's the readme file:

__________________
PgnSplit v.1.1

This commandline tool will take an inputfile in pgn-format with variations
and output each variation as a separate game into the outputfile.

Syntax:
  PgnSplit [options] <inputfile> <outputfile>

Options:
   /c 0|1      - Write comment to outpufile, default=1
   /m <number> - Max moves/game. ex /m 10, default=999
   /n 0|1      - Expand nag values, default=1
   /v 0|1      - Extend variation, default=1

History:
 3.dec.2003  1.0  - Initial release
28.dec.2003  1.1  - Fixed bug when reading long comment

Odd Gunnar Malin
____________________



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.