Can we mass convert several .pgn files to several .bin files in one operation using pgn-extract when used with SCID or standalone?

Asked by Innocent Stalwart

Can we mass/batch convert several .pgn files to several .bin files in one operation using pgn-extract when used with SCID or standalone?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu pgn-extract Edit question
Assignee:
No assignee Edit question
Solved by:
Innocent Stalwart
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

PGN files appear to be images. Is this right please? File extensions don't mean much in Linux

Revision history for this message
Innocent Stalwart (innocentstalwart) said :
#2

I got the solution to this problem from Ask Ubuntu Forum. .PNG is images .PGN is text files and .BIN is machine readable binary. Thanks. :)

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Can you give the link please. It may help others.

Again, file extensions don't mean much in Linux so your "png is images" is wrong. Download a png file from the Web and query it in the terminal using the file command. Then change the extension to ".bin" then use the file command on the new file name.... What happens?

Revision history for this message
Innocent Stalwart (innocentstalwart) said :
#4

Here is the link to help everyone:
https://askubuntu.com/questions/1316314/how-can-we-batch-convert-chess-move-files-of-pgn-file-format-to-bin-file-forma

The .bin produced from .png will not be machine readable in terms of Chess.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

It will. The OS will know its an image and open it as needed

Revision history for this message
Innocent Stalwart (innocentstalwart) said :
#6

Then it is great. We will have chess books out of PNG files according to you. Incredible.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

You are thinking with your Windows head on where the file extension means something. In Linux it doesn't. Try the file command experiment I gave. Try it in Windows (you can use the file manager in Windows to see what a file is) then use the "file" command in Linux as I described earlier. You'll see that the file extension means absolutely nothing

Revision history for this message
Innocent Stalwart (innocentstalwart) said :
#8

Good luck.