Answers.Body: <p>The basic usage of --splitvariants is:</p>
  <pre><code>pgn-extract --splitvariants inputfile.pgn --output outputfile.pgn
  </code></pre>
  <p>Given the files you have named, you should use:</p>
  <pre><code>pgn-extract --splitvariants 2.pgn --output 3.pgn
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-10-22T20:49:49.767Z
Answers.LastActivityDate: 2024-10-22T20:49:49.767Z
Answers.UserDisplayName: kentdjb
Body: <p>I have one pgn file with merged variation and I would like to use pgn extract to make many pgn files splitting all the variations within the pgn files as games. The command that I am using in the folder where pgn extract is put is as follows: pgn-extract -#2 --splitvariants 3.pgn</p>
  <p>The file 2.pgn is the main file and I want the variations to be put in the 3.pgn file but its not happening. I managed to make it work and was happy but after many days I am not able to do the same. The command prompt shows: Processing stdin     and things are not happening.</p>
  
Tags: <pgn><pgn-extract>
Title: Using Pgn extract through command prompt
ThreadText: # Using Pgn extract through command prompt
  
  (Asked by: username_0 on 2024-10-22)
  
  I have one pgn file with merged variation and I would like to use pgn extract to make many pgn files splitting all the variations within the pgn files as games. The command that I am using in the folder where pgn extract is put is as follows: pgn-extract -#2 --splitvariants 3.pgn
  
  The file 2.pgn is the main file and I want the variations to be put in the 3.pgn file but its not happening. I managed to make it work and was happy but after many days I am not able to do the same. The command prompt shows: Processing stdin and things are not happening.
  
  **Tags:** pgn, pgn-extract
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-10-22. Score: 3
  
  The basic usage of --splitvariants is:
  
  ```
  pgn-extract --splitvariants inputfile.pgn --output outputfile.pgn
  
  ```
  
  Given the files you have named, you should use:
  
  ```
  pgn-extract --splitvariants 2.pgn --output 3.pgn
  
  ```
  
  
  ---
  
  