Xentrk
Part of the Furniture
I like your code! So that is how you add color to the output.When using the f option "1. unfiltered log" you essentially run an unfiltered tail -f on the dnsmasq.log file:
The extra code it to highlight blocked domains. Nothing gets omitted with option 1.Code:tail -F $abSolutionPath/$logsDir/dnsmasq.log | \ while read line;do if echo "$line" | grep -q "is $custom_ipV4";then echo -e "$igreen$line$nc" else echo "$line" fi done
What I did was pipe the output of the tail -f to a text file so I could open it up in the MobaXterm editor and search for key words rather than relying on my eyes searching through the output on the screen.