]> arthur.barton.de Git - ngircd-alex.git/blobdiff - contrib/nglog.sh
ngIRCd Release 27
[ngircd-alex.git] / contrib / nglog.sh
index b8dbb200082edb2b264c6c1844497073db43b291..cb4eb3e9c9bfb145ef5510759357f48c68ffa6f8 100755 (executable)
 # Please read the file COPYING, README and AUTHORS for more information.
 #
 # This script parses the log output of ngircd(8), and colorizes the messages
-# accoring to their log level. Example usage:
+# according to their log level. Example usage:
 # ./src/ngircd/ngircd -f $PWD/doc/sample-ngircd.conf -np | ./contrib/nglog.sh
 #
 
-awk '
+gawk '
   /^\[[[:digit:]]+:0 / {print "\033[1;95m" $0 "\033[0m"}
   /^\[[[:digit:]]+:1 / {print "\033[1;35m" $0 "\033[0m"}
   /^\[[[:digit:]]+:2 / {print "\033[1;91m" $0 "\033[0m"}