Tool for pgn editing

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Tool for pgn editing

Postby Onno Garms » 17 Nov 2007, 22:42

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?
User avatar
Onno Garms
 
Posts: 128
Joined: 17 Feb 2007, 11:17
Location: Bonn, Germany

Re: Tool for pgn editing

Postby Marc Lacrosse » 17 Nov 2007, 22:51

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
Marc Lacrosse
 
Posts: 116
Joined: 29 Jan 2005, 09:04
Location: Belgium

Re: Tool for pgn editing

Postby Onno Garms » 18 Nov 2007, 12:41

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.
User avatar
Onno Garms
 
Posts: 128
Joined: 17 Feb 2007, 11:17
Location: Bonn, Germany


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 35 guests