So I have a log.txt files which I can search in Notepad++ on Windows, however due to the sheer number of them, I'd like to be able to run grep on them. However, the data is formatted with non-rendering characters which I don't know how to include in my grep. Notepad++ shows them as the black RS. The format of the data is like [RS]value1[RS]value2 and I need to be able to grep for value1 AND value2. This format is always constant throughout these files.How can I make grep search for this? Is there some form of escape sequence I can use? Or should I just make it search for value1 and value2 and completely ignore the presence of this non-rendering character?
Running grep for a string with non-rendering characters
grep;regular expression;character encoding
Your [RS] =  is a Record Separator character ASCII 30 0x1EYou can use this knowledge to grep for $'\x1e' (as suggested in comments) or if you want to be more general then use a character class like [^[:print:]] or [[:cntrl:]] to match it.