mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	contrib/nglog.sh: Fork awk(1), deal better with signals (CTRL-C)
This commit is contained in:
		| @@ -1,7 +1,7 @@ | |||||||
| #!/bin/sh | #!/bin/sh | ||||||
| # | # | ||||||
| # ngIRCd -- The Next Generation IRC Daemon | # ngIRCd -- The Next Generation IRC Daemon | ||||||
| # Copyright (c)2001-2019 Alexander Barton (alex@barton.de) and Contributors | # Copyright (c)2001-2020 Alexander Barton (alex@barton.de) and Contributors | ||||||
| # | # | ||||||
| # This program is free software; you can redistribute it and/or modify | # This program is free software; you can redistribute it and/or modify | ||||||
| # it under the terms of the GNU General Public License as published by | # it under the terms of the GNU General Public License as published by | ||||||
| @@ -23,4 +23,6 @@ awk ' | |||||||
|   /^\[[[:digit:]]+:5 / {print "\033[1m" $0 "\033[0m"} |   /^\[[[:digit:]]+:5 / {print "\033[1m" $0 "\033[0m"} | ||||||
|   /^\[[[:digit:]]+:6 / {print $0} |   /^\[[[:digit:]]+:6 / {print $0} | ||||||
|   /^\[[[:digit:]]+:7 / {print "\033[90m" $0 "\033[0m"} |   /^\[[[:digit:]]+:7 / {print "\033[90m" $0 "\033[0m"} | ||||||
| ' | ' </dev/stdin & | ||||||
|  |  | ||||||
|  | wait | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton