Main
Date: 31 Oct 2006 05:05:26
From: Dave (from the UK)
Subject: Concatenating PGN files in Microsoft Windows.
Is there a quick way in *Windows* that one may create one large PGN file
from 100's or 1000's of small pgn files, each with 10 games or less in?

On a UNIX system I could do

$ cat *.pgn > /tmp/all-games.pgn

Is there a command in Windows that can do this, or are there any chess
programs around which can make one )PGN file out of all the small pgn
files in a directory?


--
Dave (from the UK)

Please note my email address changes periodically to avoid spam.
It is always of the form: [email protected]
Hitting reply will work for a few months only - later set it manually.

http://witm.sourceforge.net/ (Web based Mathematica front end)




 
Date: 31 Oct 2006 11:51:50
From: David Richerby
Subject: Re: Concatenating PGN files in Microsoft Windows.
Dave (from the UK) <[email protected] > wrote:
> Is there a quick way in *Windows* that one may create one large PGN file
> from 100's or 1000's of small pgn files, each with 10 games or less in?
>
> On a UNIX system I could do
>
> $ cat *.pgn > /tmp/all-games.pgn

copy *.pgn /tmp/all-games.pgn

Note, though, that POSIX states that a compliant shell should expand
the wildcard with the filenames sorted according to the current
collation order. Windows may, or may not, DTRT. If you care about
the ordering,

copy file1.pgn + file2.pgn + ... + filen.pgn /tmp/all-games.pgn

Or use something to sort the resulting PGN file.


Dave.

--
David Richerby Dangerous Erotic Flower (TM): it's
www.chiark.greenend.org.uk/~davidr/ like a flower but it's genuinely
erotic and it could explode at any
minute!


 
Date: 31 Oct 2006 08:06:11
From: Enzo1
Subject: Re: Concatenating PGN files in Microsoft Windows.
hello
Find an example, using DOS copy command:
for instance, if all PGN files are in folder c:\tmp0

COPY c:\tmp0\*.pgn c:\tmp0\Group.pgn

Regards
Enzo from France


"Dave (from the UK)" <[email protected] > a
�crit dans le message de news: [email protected]...
> Is there a quick way in *Windows* that one may create one large PGN file
> from 100's or 1000's of small pgn files, each with 10 games or less in?
>
> On a UNIX system I could do
>
> $ cat *.pgn > /tmp/all-games.pgn
>
> Is there a command in Windows that can do this, or are there any chess
> programs around which can make one )PGN file out of all the small pgn
> files in a directory?
>
>
> --
> Dave (from the UK)
>
> Please note my email address changes periodically to avoid spam.
> It is always of the form: [email protected]
> Hitting reply will work for a few months only - later set it manually.
>
> http://witm.sourceforge.net/ (Web based Mathematica front end)




 
Date: 31 Oct 2006 07:09:18
From: Simon Waters
Subject: Re: Concatenating PGN files in Microsoft Windows.
> Is there a command in Windows that can do this

I believe the "copy" command can concatenate files, but it is no substitute
for a bash shell, and the GNU utilities.