blob: 2cea7ac68f5712210454ddb3d4c61f6bed893ac2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{
p=1
}
/\\indexspace|\\begin\{theindex|\\end\{theindex/ {
p=0
}
/\\item|\\subitem/ {
p=0
printf "\n%s", $0
}
{
if (p) printf "%s", $0
}
END {
printf "\n"
}
|