File: get_errors_messages.sh

package info (click to toggle)
python-haproxyadmin 0.2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 436 kB
  • sloc: python: 1,500; makefile: 165; sh: 1
file content (9 lines) | stat: -rwxr-xr-x 305 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#! /bin/bash
#
# get_errors_messages.sh
# Copyright (C) 2015 pparissis <pavlos.parissis@booking.com>
#
# Distributed under terms of the MIT license.
#

cat src/dumpstats.c |awk -F'=' '{if (match($0,/appctx->ctx.cli.msg/) && match($2,/^ "/")) {sub(/\\n"/,"\"",$2");sub(/;$/,",",$2);print $2}}' |sort|uniq'