I think the command depends on the version? I use the following version of pgn-extract: (version 16.7)Ozymandias wrote:Use pgn-extract, this is the command line:Lyudmil Tsvetkov wrote:Anyone knowing of a trick to strip the pgn to just the moves played for both sides?
Even better, if this could be done with the whole pgn file.This will clean the pgn of variations, comments and symbols. If you want to see what it does, remove the silent option (-s).Code: Select all
pgn-extract -s -C -N -V -oclean.pgn input.pgn
There's a specific thread for that.Lyudmil Tsvetkov wrote:Btw., I am reading WikiSpaces are going to close.
What will happen with the Chess Programming Wiki, any clue?
Code: Select all
pgn-extract v16.7 (Jul 18 2008): a Portable Game Notation (PGN) manipulator.
Copyright (C) 1994-2007 David J. Barnes (d.j.barnes@kent.ac.uk)
http://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/
the DOS redirection >> operator like so:
Code: Select all
pgn-extract -s -C -N -V ThisIsUncleanInput.pgn >> CleanedOutput.pgn
I think that's why there's error about - in OP's attempt.
Edit: sorry, you are also correct. the -o switch dictates the output file.

Also, I think I figured out how he got the error, he types pgn-extract first (which triggers INTERACTIVE mode)
and then paste another pgn-extract -s -C -N -V command while inside the program.
It shoud be pasted directly in command prompt just ONCE, not twice.