From b456cc64e931c87bed0e37a7bc3c3105c4e55ab8 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 1 Jan 2017 04:40:38 +0330 Subject: added a lil extra for the future --- extra-tools/ReportPrintPretty.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'extra-tools/ReportPrintPretty.sh') diff --git a/extra-tools/ReportPrintPretty.sh b/extra-tools/ReportPrintPretty.sh index 46afdd0..389b504 100755 --- a/extra-tools/ReportPrintPretty.sh +++ b/extra-tools/ReportPrintPretty.sh @@ -1,6 +1,7 @@ #!/bin/bash #the first input should be the raw report output #the second output should be the file name for the pretty output +#function red(string) { printf ("%s%s%s", "\033[1;31m", string, "\033[0m "); } "cat" "$1" | gawk ' BEGIN{RS = "\n";FS = ":"} function red(s) {printf "\033[1;31m" s "\033[0m "} -- cgit v1.2.3