Author: Chessfun
Date: 10:49:58 03/07/04
Go up one level in this thread
On March 07, 2004 at 09:53:23, Bob Durrett wrote: >On March 07, 2004 at 00:19:25, J. Wesley Cleveland wrote: > >>On March 06, 2004 at 22:28:08, Jeff White wrote: >> >>>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. >>> >>>Regards, >>>Jeff >> >> >>If you are running windows, open a dos box, cd to the directory where your file >>is, and type: >>find "[FEN" myfile.pgn >fen.txt >>where myfile.pgn is the name of the pgn file. This should put just the fen lines >>in fen.txt. Load this file in a word processor, do 2 replace all to get rid of >>the [FEN " and the "] save it as text and you should have it. > >Some people just won't give up that DOS stuff! : ) Errr, can you name an easier way to do it?
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.