Answers.Body: <p>I am the author of pgn-extract. It would be easier to address the specifics of what you are trying to do via the personal email address included with the pgn-extract documentation. I would be happy to help.</p>
  
  <p>David</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-06T22:41:13.803Z
Answers.Text: I'll get everything put together and sent as soon as I am able to.  Thanks!
Answers.UserDisplayName: hangejj
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-17T21:31:44.357Z
Answers.Text: Update.  I was able to figure out the problem.  I took another look at the link: https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html  Thanks!
Answers.UserDisplayName: hangejj
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-05T10:34:04.217Z
Answers.LastActivityDate: 2018-02-05T10:34:04.217Z
Answers.UserDisplayName: kentdjb
Answers.Body: <p>I don’t know if pgn-extract can do that, but you might want to try sed. Use sed to do a global replacement for [Event, insert a new line to the beginning of the string.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-04T23:42:53.103Z
Answers.LastActivityDate: 2018-02-04T23:42:53.103Z
Answers.UserDisplayName: SmallChess
Body: <p>Anyone familiar with the program pgn-extract to possibly help with a little troubleshooting?  I have tried to look through manual of the program and I am coming at a loss with addressing the issue.  I have tried using pgn-extract program commands -C, -N, -V with no affect. Here's the following line from my .bat file.</p>
  
  <p><a href="https://i.sstatic.net/qz4u7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/qz4u7.png" alt="enter image description here"></a></p>
  
  <p><a href="https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html" rel="nofollow noreferrer">https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html</a> for manual reference.</p>
  
  <p>Objective-I am trying to clean up a .pgn file that was created by combining multiple .pgn files together via either dos commands.  </p>
  
  <blockquote>
    <p>copy *.pgn newfile.pgn</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>copy /b *.pgn newfile.pgn</p>
  </blockquote>
  
  <p>Issue-.pgn code errors.  In both attempts at combining multiple .pgn files I get similar errors.  See screenshots.</p>
  
  <p>improper header spacing examples(text editor used is Brackets).  This is causing a variance in multiple GUI's calculation of total games in the database.  Preferred fix would be to use pgn-extractor to clean the pgn file by properly placing the header of the next game in the proper position below the previous game so the GUI can correctly count total games.  I know how to manually fix this but I'm also building a separate opening book that will have a thousands of games in and in case this issue happens with that, would like to find a fix beforehand.</p>
  
  <p><a href="https://i.sstatic.net/H6iX7.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/H6iX7.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.sstatic.net/6Qmir.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/6Qmir.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-05T21:30:26.230Z
Comments.Text: I note that your bat file has -Y rather than -V, which would be an error as there is no -Y argument to pgn-extract.
Comments.UserDisplayName: kentdjb
Tags: <software><pgn>
Title: pgn-extract program troubleshoot
ThreadText: # pgn-extract program troubleshoot
  
  (Asked by: username_0 on 2018-02-04)
  
  Anyone familiar with the program pgn-extract to possibly help with a little troubleshooting? I have tried to look through manual of the program and I am coming at a loss with addressing the issue. I have tried using pgn-extract program commands -C, -N, -V with no affect. Here's the following line from my .bat file.
  
  [![enter image description here](https://i.sstatic.net/qz4u7.png)](https://i.sstatic.net/qz4u7.png)
  
  <https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html> for manual reference.
  
  Objective-I am trying to clean up a .pgn file that was created by combining multiple .pgn files together via either dos commands.
  
  > copy \*.pgn newfile.pgn
  
  or
  
  > copy /b \*.pgn newfile.pgn
  
  Issue-.pgn code errors. In both attempts at combining multiple .pgn files I get similar errors. See screenshots.
  
  improper header spacing examples(text editor used is Brackets). This is causing a variance in multiple GUI's calculation of total games in the database. Preferred fix would be to use pgn-extractor to clean the pgn file by properly placing the header of the next game in the proper position below the previous game so the GUI can correctly count total games. I know how to manually fix this but I'm also building a separate opening book that will have a thousands of games in and in case this issue happens with that, would like to find a fix beforehand.
  
  [![enter image description here](https://i.sstatic.net/H6iX7.png)](https://i.sstatic.net/H6iX7.png)
  
  [![enter image description here](https://i.sstatic.net/6Qmir.png)](https://i.sstatic.net/6Qmir.png)
  
  **Tags:** software, pgn
  
  > **Comments:**
  > **username_1**: I note that your bat file has -Y rather than -V, which would be an error as there is no -Y argument to pgn-extract.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-02-05. Score: 4
  
  I am the author of pgn-extract. It would be easier to address the specifics of what you are trying to do via the personal email address included with the pgn-extract documentation. I would be happy to help.
  
  David
  
  > **Comments:**
  > **username_0**: I'll get everything put together and sent as soon as I am able to.  Thanks!  
  > **username_0**: Update.  I was able to figure out the problem.  I took another look at the link: https://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/help.html  Thanks!  
  
  ---
  
  ### Answer by username_2 on 2018-02-04. Score: 1
  
  I don’t know if pgn-extract can do that, but you might want to try sed. Use sed to do a global replacement for [Event, insert a new line to the beginning of the string.
  
  
  ---
  
  