Soft'N'Design Software
/
projects
/
debian6500.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unglue line in colorlog script
[debian6500.git]
/
master
/
root
/
bin
/
colorlog
diff --git
a/master/root/bin/colorlog
b/master/root/bin/colorlog
old mode 100644
(file)
new mode 100755
(executable)
index
7e0ae00
..
9868d58
--- a/
master/root/bin/colorlog
+++ b/
master/root/bin/colorlog
@@
-1,4
+1,7
@@
#!/usr/bin/awk -f
+BEGIN {start=":trc[0-9][0-9]: "}
+"^..*" start {$0=gensub("^(..*)(" start ")", "\\1\n\\2", "g", $0)}
+/^$/ {getline}
/TRACE/ {$0="\033[1;34m" $0 "\033[0;0m"} # blue
/DEBUG/ {$0="\033[1;32m" $0 "\033[0;0m"} # green
/INFO/ {}