Skip to main content

Timeline for grep for an ANSI escape code

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Aug 28, 2019 at 14:16 comment added Andy \grep $'^\x1b\[41m' will work without perl regex or inserting a literal escape sequence, so it is editor friendly and works on mac.
Nov 22, 2016 at 10:36 history edited 林果皞 CC BY-SA 3.0
added 361 characters in body
Nov 21, 2016 at 23:54 comment added Ken Y-N Thank you for that - I see the problem was mostly me not realising there was both a [ from the ^[ and the literal [. Since my initial post, I'd also discovered that \grep -P "\e\[41m" is an alternative.
Nov 21, 2016 at 23:47 vote accept Ken Y-N
Nov 21, 2016 at 10:00 history edited 林果皞 CC BY-SA 3.0
added 42 characters in body
Nov 21, 2016 at 9:43 history edited 林果皞 CC BY-SA 3.0
correction
Nov 21, 2016 at 9:35 history edited 林果皞 CC BY-SA 3.0
correction
Nov 21, 2016 at 9:17 history edited 林果皞 CC BY-SA 3.0
added 9 characters in body
Nov 21, 2016 at 9:11 history answered 林果皞 CC BY-SA 3.0