Debian Codegraph @

commissioning/finderror.csh

raw
1 #! /bin/csh
2 # Find the unique errors in all the log files.
3 unalias grep
4 #.....................................................................
5 if ( "$1" == "" ) then
6 echo -n "Enter logfile name or wildcard pattern: "
7 set errlog = $<
8 else
9 set errlog = $1
10 endif
11 #
12
13 cat $errlog | grep -i "^.*error[ :]" | sort -u | grep -v AssertionError | grep -v "ERROR: test"