Hash : ea8a0f40 Author : Date : 2022-03-14T22:43:46
Download
1 2 3 4 5 6 7
<h2>Full example</h2> <pre><code># Source: awklang.org BEGIN { ascetion = bsection = 0 } $2 ~ /^[aA][0-9]+/ { asection++ } $2 ~ /^[bB][0-9]+/ { bsection++ } END { print asection, bsection } </code></pre>