File: linecount.mtail

package info (click to toggle)
mtail 3.2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,384 kB
  • sloc: yacc: 647; makefile: 226; sh: 78; lisp: 77; awk: 17
file content (9 lines) | stat: -rw-r--r-- 219 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
# Copyright 2011 Google Inc. All Rights Reserved.
# This file is available under the Apache license.

# The most basic of mtail programmes -- count the number of lines read.
counter lines_total

/$/ {
  lines_total++
}