Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Strip headers from mailstored PGN files

Author: Lonnie Cook

Date: 12:04:57 03/05/01

Go up one level in this thread


On March 05, 2001 at 11:16:11, Robert Hyatt wrote:

>On March 05, 2001 at 03:21:30, Lonnie Cook wrote:
>
>>Anyone know of a program that can strip headers from mailstored PGN files from
>>ICC and put them into one PGN file.
>
>I have such a script for unix.  You can probably make it work for windows if
>you have a "grep" that supports the -v option...

How about I just rename my "Games" folder in Eudroa pro which is basically ASCII
to games .PGN and view it through Nimzo8 or any comparable program,heehee

It WORKS, I tried it!! Yeehaaaa (echo)
>
>Bob
>
>
>
>>
>>Here's an ex:
>>
>>I want the text from "From -Subject (last line) removed automatically on a bunch
>>of files and made into one PGN file. I used to have a program for this
>>specifically but the jerk would not give it to me anymore for unknown reasons
>>
>>From ???@??? Mon Mar 05 03:00:54 2001
>>X-Persona: <lonnie>
>>Return-Path: <icc@www.chessclub.com>
>>Received: from mh1-sfba.mail.home.com ([24.0.95.132])
>>          by mail.rdc1.ct.home.com (InterMail vM.4.01.03.00 201-229-121)
>>          with ESMTP
>>          id
>><20010305075947.EDTL20503.mail.rdc1.ct.home.com@mh1-sfba.mail.home.com>
>>          for <plexlonnie@mail.wwck1.ri.home.com>;
>>          Sun, 4 Mar 2001 23:59:47 -0800
>>Received: from mx1-sfba.mail.home.com (mx1-sfba.mail.home.com [24.0.95.136])
>>	by mh1-sfba.mail.home.com (8.9.3/8.9.0) with ESMTP id XAA11518
>>	for <plexlonnie@home.com>; Sun, 4 Mar 2001 23:59:47 -0800 (PST)
>>Received: from www.chessclub.com ([204.178.125.65])
>>	by mx1-sfba.mail.home.com (8.11.1/8.11.1) with ESMTP id f257xku21359
>>	for <plexlonnie@home.com>; Sun, 4 Mar 2001 23:59:46 -0800 (PST)
>>Received: (from icc@localhost)
>>	by www.chessclub.com (8.11.2/8.9.3) id f257xgv01256
>>	for plexlonnie@home.com; Mon, 5 Mar 2001 02:59:42 -0500 (EST)
>>	(envelope-from icc)
>>Date: Mon, 5 Mar 2001 02:59:42 -0500 (EST)
>>From: Internet Chess Club <icc@www.chessclub.com>
>>Message-Id: <200103050759.f257xgv01256@www.chessclub.com>
>>To: Squirting-pus <plexlonnie@home.com>
>>Subject: ICC game: *Grischuk,A vs *Polgar,Ju
>>
>>[Event "SuperGM"]
>>[Site "Linares ESP"]
>>[Date "2001.02.23"]
>>[Round "1"]
>>[White "Grischuk,A"]
>>[Black "Polgar,Ju"]
>>[Result "1/2-1/2"]
>>[WhiteElo "2663"]
>>[BlackElo "2676"]
>>[Opening "Sicilian: Taimanov (Bastrikov) variation"]
>>[ECO "B47"]
>>[NIC "SI.40"]
>>
>>1. e4 c5 2. Nf3 e6 3. d4 cxd4 4. Nxd4 Nc6 5. Nc3 Qc7 6. Be2 a6 7. O-O Nf6 8.
>>Kh1 Nxd4 9. Qxd4 Bc5 10. Qd3 b5 11. f4 Bb7 12. Bf3 O-O 13. e5 Ne8 14. a4 b4
>>15. Bxb7 Qxb7 16. Ne4 Be7 17. Be3 Qc6 18. Ng5 g6 19. Rad1 d6 20. Bd4 dxe5
>>21. Bxe5 Nf6 22. Qh3 h5 23. Nf3 Ng4 24. Nd4 Qc5 25. Qg3 Rad8 26. c3 bxc3 27.
>>bxc3 Rd5 28. Rde1 Rc8 29. Rf3 Bf8 30. h3 Nxe5 31. fxe5 Bg7 32. Rfe3 Qa5 33.
>>Nxe6 fxe6 34. Qxg6 Qb6 35. Rf3 Rf8 36. Rxf8+ Kxf8 37. Rf1+ Kg8 38. Qe8+ Kh7
>>39. Qxh5+ Kg8 40. Qf7+ Kh7 41. Qh5+ Kg8 42. Rf4 Qb1+ 43. Kh2 Bxe5 44. Qf7+
>>{Game drawn}
>>1/2-1/2
>>
>>
>>From ???@??? Mon Mar 05 03:00:54 2001
>>X-Persona: <lonnie>
>>Return-Path: <icc@www.chessclub.com>
>>Received: from mh3-sfba.mail.home.com ([24.0.95.134])
>>          by mail.rdc1.ct.home.com (InterMail vM.4.01.03.00 201-229-121)
>>          with ESMTP
>>          id
>><20010305075951.EDTX20503.mail.rdc1.ct.home.com@mh3-sfba.mail.home.com>
>>          for <plexlonnie@mail.wwck1.ri.home.com>;
>>          Sun, 4 Mar 2001 23:59:51 -0800
>>Received: from mx3-sfba.mail.home.com (mx3-sfba.mail.home.com [24.0.95.138])
>>	by mh3-sfba.mail.home.com (8.9.3/8.9.0) with ESMTP id XAA14491
>>	for <plexlonnie@home.com>; Sun, 4 Mar 2001 23:59:50 -0800 (PST)
>>Received: from www.chessclub.com ([204.178.125.65])
>>	by mx3-sfba.mail.home.com (8.11.1/8.11.1) with ESMTP id f257xnS13530
>>	for <plexlonnie@home.com>; Sun, 4 Mar 2001 23:59:49 -0800 (PST)
>>Received: (from icc@localhost)
>>	by www.chessclub.com (8.11.2/8.9.3) id f257xn401274
>>	for plexlonnie@home.com; Mon, 5 Mar 2001 02:59:49 -0500 (EST)
>>	(envelope-from icc)
>>Date: Mon, 5 Mar 2001 02:59:49 -0500 (EST)
>>From: Internet Chess Club <icc@www.chessclub.com>
>>Message-Id: <200103050759.f257xn401274@www.chessclub.com>
>>To: Squirting-pus <plexlonnie@home.com>
>>Subject: ICC game: *Leko,P vs *Kasparov,G
>>
>>[Event "SuperGM"]
>>[Site "Linares ESP"]
>>[Date "2001.02.23"]
>>[Round "1"]
>>[White "Leko,P"]
>>[Black "Kasparov,G"]
>>[Result "1/2-1/2"]
>>[WhiteElo "2745"]
>>[BlackElo "2849"]
>>[Opening "Sicilian: Najdorf, 7...Qb6"]
>>[ECO "B97"]
>>[NIC "SI.08"]
>>
>>1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3 a6 6. Bg5 e6 7. f4 Qb6 8.
>>Nb3 Be7 9. Qf3 Nbd7 10. O-O-O Qc7 11. Bd3 b5 12. a3 Rb8 13. Rhe1 b4 14. axb4
>>Rxb4 15. Kb1 Bb7 16. Qh3 Nc5 17. Nxc5 dxc5 18. e5 Nd5 19. Nxd5 Bxd5 20. c3
>>Rb3 21. Bc2 Qb7 22. Bxb3 Qxb3 23. Rxd5 Qxd5 24. Bxe7 Kxe7 25. Qh4+ Kd7 26.
>>Qg4 Kc6 27. Qe2 Rd8 28. Qxa6+ Kc7 29. Qa7+ Kc6 30. Qa6+ Kc7 31. Qa5+ Kb7 32.
>>Qb5+ Kc7 33. Qa5+ Kb7 34. Qb5+ Kc7 35. Qe2 h5 36. g3 g6 37. c4 Qd2 38. Qe3
>>Rd4 39. Qxd2 Rxd2 40. Re3 Rxh2 41. Rf3 Kc6 42. Ka2 Rh3 43. Rb3 h4 44. gxh4
>>Rxh4 45. Rf3 Rh5 46. Rg3 Rh2 47. Rf3 Rc2 48. Kb3 Rc1 49. Rf2 Kb6 50. Rf3 Ka5
>>51. Rf2 Re1 52. Ka3 Ra1+ 53. Kb3 Rc1 54. Rf3 Kb6 55. Rf2 {Game drawn}
>>1/2-1/2



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.