blob: 49f63f5924a10aab9e5e105642bf60a264de78a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
BEGIN {
chapters["Getting Started"]++
chapters["Invoking Gawk"]++
chapters["Regexp"]++
chapters["Reading Files"]++
chapters["Printing"]++
chapters["Expressions"]++
chapters["Patterns and Actions"]++
chapters["Arrays"]++
chapters["Functions"]++
chapters["Library Functions"]++
chapters["Sample Programs"]++
chapters["Advanced Features"]++
chapters["Internationalization"]++
chapters["Debugger"]++
chapters["Arbitrary Precision Arithmetic"]++
chapters["Dynamic Extensions"]++
chapters["Language History"]++
chapters["Installation"]++
chapters["Notes"]++
chapters["Basic Concepts"]++
Pattern = ".*@ref\\{([^}]+)\\},.*"
}
$0 ~ Pattern {
ref = gensub(Pattern, "\\1", 1, $0)
if (! (ref in chapters))
printf("%s:%d: %s\n", FILENAME, FNR, $0)
}
|