#!/bin/sh tail -F my.log | perl -lane 'if (/Iteration duration/) { $F[9] = "\e[1;35m$F[9]\e[0m" if $F[9] >= 90; print join(" ", @F) }'