Page 1 of 1

Tool for pgn editing

PostPosted: 17 Nov 2007, 22:42
by Onno Garms
I have a larger number of pgn files, each containing almost 1000 games. I want to delete all games of specific engines from all of the files. What is the best way to do this?

Shredder closes the window after every single deletion, making the delete feature unusable. Arena can filter by player and delete several games, but seems to write the file to disc after every single deletion, resulting in quadratic behaviour. (number of files to delete) times (size of database); about five minutes on my old windows machine per pgn file. The only thing that I found with Google was a perl script, but it is rather buggy.

Seems that I have to brush up my poor perl knowledge, but it's hard to believe that there is no adequate tool for this simple task. Any recommendations?

Re: Tool for pgn editing

PostPosted: 17 Nov 2007, 22:51
by Marc Lacrosse
Onno Garms wrote:I want to delete all games of specific engines from all of the files.
Any recommendations?


SCID will easily do this.

Create a scid .si3 file.
Then import all pgn files, select all games by the undesired engine, delete them.

Then export to PGN.

Marc

Re: Tool for pgn editing

PostPosted: 18 Nov 2007, 12:41
by Onno Garms
Marc Lacrosse wrote:SCID will easily do this.


Thanks. It works.

As I don't want to merge the databases into one, this still means a lot of clicking, but as I don't expect to have this task too often, I think it's still less efford than writing (or fixing) a command line tool.