|
From: | Eric Price |
Subject: | grep colors more than actual match |
Date: | Thu, 23 Aug 2007 11:19:59 -0400 |
User-agent: | Mutt/1.5.13 (2006-08-11) |
Grep sometimes colors more of the line than the actual match: $ echo 192.168.1.0 | grep '^[0-9][0-9][0-9]\.' --color 192.168.1.0 ^^^^^^^^ colored The raw control characters of the output are: ^[[01;31m192.^[[00m^[[01;31m168.^[[00m1.1 I'm running grep 2.5.1 on Debian Etch. Eric
[Prev in Thread] | Current Thread | [Next in Thread] |