Home | | | Software | | | Contact |
Batch File converter using SED - for Chessbase file conversion
I like using old tools, and here was an example of using an old tool SED(stream editor) to do a batch file conversion for ChessBase files from one version to another. I was based on feeding in the files to sed and sed using a "rosetta stone" with regular expressions to change the files to the new format, hence making the existing chessbase database of games readable into the later version of chessbase.
Rosetta.txt file contatins the regular expression
s/oldstring/newstring/g
Another old unix gem "tr" (translate) I toyed with using but since it was on a windows/dos box I found using sed with DOS handier.