$ tail -f FILE | perl -pe 's/KEYWORD/\e[1;31;43m$&\e[0m/g'
tail with coloured output with the help of perl - need more colours? here is a colour table:
Submitted by tuxifier
Options:
commandlinefu.com by David Winterbottom
$ tail -f FILE | perl -pe 's/KEYWORD/\e[1;31;43m$&\e[0m/g'
tail with coloured output with the help of perl - need more colours? here is a colour table:
Options:
commandlinefu.com by David Winterbottom
0sem comentários ainda