Quote:
Originally Posted by
RudiC
How are those files created?
These files denote chess games and are called PGN (portable game notation).
Quote:
Originally Posted by prvnrk
I find it extremely hard to learn awk and is highly confusing.
awk is a complete programming language, but its main design goal was to work on table-based data. Each awk-program has three sections:
- one section (BEGIN) is executed before any data are read - think about printing a header
- one is executed for each line of the input data and consists of rules. A "rule" basically is a list of commands and a description of a text pattern: if the line matches the text pattern the commands are executed, if not then not
- one section (END) is executed after all data in the input file/data stream is processed - think of writing a footer and eventually totals, etc..
In my opinion the best book about
awk (and
sed - they have a lot in common) is "awk & sed" by Dale Dougherty, published by O'Reilly.
I hope this helps.
bakunin