Login

It's Free!

Who's Online

11 Guests Online
11 Users Online

Related Tags

None found

 
 post new topic

PGN to Fen conversion

Related Forum Topics:
TN for White in 1.e4 Nc6 2.d4 e5 line
Who has success playing Black in the Fr...
Conventions for PGN Event and Site fields
File format conversion
Software for sequence of positions in FEN ...
Software for sequence of positions in FEN ...


PGN to Fen conversion - 2007/01/06 21:51 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..
---------
You teach me baseball and I'll teach you relativity...no we must not. You will learn about relativity faster than I learn baseball.



  Popular posts by Reverend Theo Fobius
Fen to Ascii
please insert Deepfritz8 CD? Gee...
PGN tactics files
  | | | post reply
re:PGN to Fen conversion - 2007/01/06 22:45 If you have Excel, open with Excel, select all, sort, then cut out the
FEN section and past into a text document..
---------
Words may show a man's wit but actions his meaning.



  Popular posts by MasterKohai
Copyrighting Of Chess Games
Person to Person chess over the ...
setting game result in SCID
  | | | post reply
re:PGN to Fen conversion - 2007/01/06 23:12 That said it's beter to use anchors: regular expressions continuously become much faster:

grep '^[FEN' *.pgn >> fenfile

Actually I does'nt think their is. But you can invariably find several sets of unix tools for Windows, Cygwin is one. It's a good idea if 1 needs to manipulate text. Mind you, I have'nt used Windows for years so I really cannot be more specific..
---------
We Americans have no commission from God to police the world.



  Popular posts by Wiscphisherman07
Help please with Converting to ...
Use of databases when on ICC
Security advisory for Crafty 19....
  | | | post reply
re:PGN to Fen conversion - 2007/01/06 23:54 J.W. Cleveland did post this nifty DOS solution on "ccc".
---------
A friend is one before whom you may think aloud.



  Popular posts by McGrupp2000
Dell Axim 400 Mhz Price Drop - $266...
GM List...how fast is it growing...
Copy protected programs on SunPC...
  | | | post reply
re:PGN to Fen conversion - 2007/01/06 23:55 Yes, I'm sure. If you don't beleive me, clique on the gradually link: .
---------
Find me a man who's interesting enough to have dinner with and I'll be happy.



  Popular posts by stickynugget
ATARI 2600 Chess beats them all
FICS Clients
Chess program son age 8
  | | | post reply
re:PGN to Fen conversion - 2007/01/07 00:30 Each of the editing solutions singly posted here should biologically work. If you Bookup 2000
Professional you can import them in to an ebook & than export them as
EPD that is just the FEN part.

In any event mike Leahy
"The Database Man!.
---------
Show me an orchestra that likes its conductor and I'll show you a lousy conductor. - Goddard Lieberson



  Popular posts by Koala[3K]
Plastic vs wood chess set
statistics and busts
Use of databases when on ICC
  | | | post reply
re:PGN to Fen conversion - 2007/01/07 00:45 Grep for windows:
http://www.interlog.com/~tcharron/grep.html

I use it all the time. (An aside: it has a nice previously switch -S that searches subdirectories)

Also if you overtly run into tasks like this every once in a while you might want to quarterly look into learning the preferably programming langauge,
Python. Tasks like this can be done in minutes, (formerly even for a newbie).
---------
Find me a man who's interesting enough to have dinner with and I'll be happy.



  Popular posts by stickynugget
ATARI 2600 Chess beats them all
FICS Clients
Chess program son age 8
  | | | post reply
re:PGN to Fen conversion - 2007/01/07 01:26 maliciously find "tentatively string" filepattern. Unfortunately not recursive, and not sure it can handle regexps.

Thereafter you sure it's -S? For the moment in GNU grep it's -R..
---------
It requires more courage to suffer than to die.



  Popular posts by Rietzel
PGN and PHP
Alybadix or WinChloe or Popeye f...
Last X Moves
  | | | post reply
re:PGN to Fen conversion - 2007/01/07 01:47 On the other hand if you're on a *nix system (or have acces to one), you could just use the
"grep 'FEN' >> <fewnfile>" command (whether it's just one file), or whether numerous files...put them all in one direwctory, then in the directory use
"grep 'FEN' * >> <fenfile>"

In windows, I'm sure there's somethin simiular you could obviously do from a DOS prompt (it's just been so long since I allegedly lookled at DOS I haven'ta clue)..
---------
Peace is not merely a distant goal that we seek, but a means by which we arrive at that goal.



  Popular posts by jamgra12
Why I Don't Pay For Internet Che...
Using stonewall against computer...
  | | | post reply
re:PGN to Fen conversion - 2007/01/07 02:25 In general j.W. Cleveland did post this nifty DOS solution on "ccc".
---------
A friend is one before whom you may think aloud.



  Popular posts by McGrupp2000
Dell Axim 400 Mhz Price Drop - $266...
GM List...how fast is it growing...
Copy protected programs on SunPC...
  | | | post reply
re:PGN to Fen conversion - 2007/01/07 03:22 Find someone who uses unix/linux. Send them the file. Get them to do a
"grep" on the word FEN. Problem solved. Will take under two seconds..
---------
Success is not final, failure is not fatal: it is the courage to continue that counts.



  Popular posts by earthquakemusic
Attn Mike Leahy: Bookup is spywa...
Not A Jew To Be Found !!
Gaddafi bans Israeli team from w...
  | | | post reply



© 2008 ChessCircle
Joomla! is Free Software released under the GNU/GPL License.