☰
Debian Codegraph
@
1.30.0+dfsg+~1.26.6-1
/
/
examples
/
prism-awk.html
☽
☼
examples/prism-awk.html
code
plain
raw
symbols
SCIP
Expat
2018 Lea Verou
debian/copyright
1
<
h2
>Full example</
h2
>
2
<
pre
><
code
># Source: awklang.org
3
BEGIN { ascetion = bsection = 0 }
4
$2 ~ /^[aA][0-9]+/ { asection++ }
5
$2 ~ /^[bB][0-9]+/ { bsection++ }
6
END { print asection, bsection }
7
</
code
></
pre
>