trim.exe is my utility to remove move-wrap from pgn files. Move-wrap is word-wrap of moves. trim is also able to change the width of the pgns. It can now also truncate pgn files to a maximum number of plies (half moves).
Temporarily you can download it from:
http://www.hoflink.com/~npollock/trim12.rar
I want to thank Jim Ablett for hosting trim and my other utilities on his excellent site. Hopefully trim 1.2 will be up there soon. Thanks Jim.
Here are the improvements from the previous released version (v1.0).
1. trim now removes comments. Before you had to use another program to remove comments from your pgn file before using trim.exe.
2. trim now is able to truncate the pgns to a maximum number of plies (half-moves).
notes on usage in a Windows command window:
trim.exe creates an output file "outR.pgn" without changing the input file.
Usage:
trim alpha.pgn
OR
trim alpha.pgn <widthNumber>
OR
trim alpha.pgn <widthNumber> <maxNumberPlies>
The optional widthNumber sets the width of the output data from 50 to 100 characters. The default width is 75 characters.
The optional maxNumberPlies sets the maximum number of plies (half-moves) that will be output.
Notice that a width number has to first be specified each time you want to specify a max number of plies.