File: pcr.awk

package info (click to toggle)
icom 20040912-1.1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 744 kB
  • ctags: 501
  • sloc: ansic: 3,086; csh: 65; makefile: 62; awk: 61
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 {
}