Le Mer 17 avril 2013 10:22, Dotan Cohen a écrit : > The following page has a nice example of how to highlight text in > logfiles: > http://www.euperia.com/linux/how-to-highlight-keywords-when-using-tail/903 > > > Here is the example: > tail -f file.log | perl -pe 's/keyword/\e[1;31;43m$&\e[0m/g' > > What are the regex replacements in the second part of the replace > called? They are rather hard to goolge for without a name! If anybody has a > good resource bookmarked with examples, I would love to see that as well. > > Thank you!
Those are escape sequences from VT100 IIRC. And, if I am not wrong, they are quite the same as those used in ecma-48, which have free (as in free beer) specifications downloadable here: http://www.ecma-international.org/publications/standards/Ecma-048.htm Have fun :) Note: this spec is quite easy to read, unlike many other I have read. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/752c19b90597c05bd753f468d4f0df87.squir...@www.sud-ouest.org