Diskless Debian cluster Posted by mazet on Jul 01 2016 in Bash, DebianScript /etc/initscript/hooks/tftp ># -*- shell-script -*- # Cluster specific mount sequence mountroot () { # configure ethernet ipconfig -c dhcp eth0 ipconfig -c dhcp eth1… more »Send feedback »
Colorize log file Posted by mazet on Jul 01 2016 in AwkShort script to colorize log file. #!/usr/bin/awk -f BEGIN {start=":host[0-9][0-9]: "} "^..*" start {$0=gensub("^(..*)(" start ")", "\\1\n\\2", "g", $0)} /^$/ {getline} # split glue line /TRACE/ {$0="\033[1;34m" $0 "\033[0;0m"} # blue /DEBUG/… more »Send feedback »