File: stringy.mtail

package info (click to toggle)
mtail 3.0.0~rc43-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,336 kB
  • sloc: yacc: 576; makefile: 217; sh: 123; lisp: 77; awk: 17
file content (13 lines) | stat: -rw-r--r-- 159 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
text str
counter b by foo

# To make ex_test.go happy
strptime("2018-06-16T03:37:54Z", "2006-01-02T15:04:05Z07:00")

/(.*)/ {
  str = $1
}

/b/ {
  b[str]++
}