View Single Post
  #1   Report Post  
Old March 7th 04, 03:26 AM
Posts: n/a
Default PGN to Fen conversion

I have a file of positions in pgn format, 1154 of them to be exact. Here is an
example of one:

[Event "Combination Challenge!"]
[Site "?"]
[Date "1992.??.??"]
[Round "?"]
[White "01"]
[Black "?"]
[Result "*"]
[SetUp "1"]
[FEN "3rn1k1/p4ppp/1p4b1/2p1Q3/2P1P3/P4P2/1B1qBP1P/1R5K w - - 0 1"]
[PlyCount "0"]
[EventDate "1991.??.??"]
[SourceDate "2002.08.06"]

What I want to do is just have the fen line without everything else. I tried
the program pgn2fen without success. I don't want to have to edit out
everything except the fen line with a word processor. Basically I want 1154 fen
lines. How do I go about doing this? Any help anyone can provide is greatly
appreciated. Thanks very much.