I am trying to use pgn-extract to extract games that exist exactly once in two PGN files. I thought the following would work:

pgn-extract -U a.pgn b.pgn -o/dev/null -nonly_once.pgn

but it simply removes duplicates like -D would do and keeps the games that occur in both input files.

Is it possible with pgn-extract?

1 Answer 1


It looks like the following achieves what I need:

(pgn-extract -c a.pgn -D b.pgn; pgn-extract -c b.pgn -D a.pgn) > c.pgn

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.