File: diff-cron-stats

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 (11 lines) | stat: -rwxr-xr-x 221 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#! /usr/bin/env bash
#
# Replace columns from zeekctl cron's stats.log
# that are not predictable with Xs.

awk '{ 
    if ( $1 ~ /^[0-9]+\.[0-9]+$/ ) { $1 = "XXXXXXXXXX.XX" }
    if ( NF > 4 ) { $5 = "X" }

    print
}'