File: pcr.awk

package info (click to toggle)
icom 20120228-3
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,404 kB
  • ctags: 982
  • sloc: ansic: 4,063; cpp: 3,322; xml: 112; makefile: 67; csh: 64; awk: 37
file content (13 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
BEGIN {
}
{
	if (NF == 1 && substr($1, 1, 5) == "[BANK") {
		bank = substr($1, 6, 2)
		chan = 0
	}
	if (NF == 9) {
		printf("%d.%d %s %s name %s\n", bank, chan, $2, $3, substr($1, 4, 8))
		chan++
	}
} END {
}