File: diff-update-output

package info (click to toggle)
zeekctl 2.2.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,544 kB
  • sloc: python: 5,639; sh: 1,374; makefile: 71; awk: 24
file content (16 lines) | stat: -rwxr-xr-x 287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /usr/bin/env bash
#
# Replace unpredictable "zeekctl update" output with a constant string.

awk '{
    if ( $1 != "updating" )
    {
        if ( $0 ~ /sent [0-9][0-9]* ID/ || $0 ~ /processing suspended/ )
        { 
            $0 = $1 " (SOMETHING)"
        }
    }

    print
}'