<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 7 January 2016 at 03:29, Yi Zhao <span dir="ltr"><<a href="mailto:yi.zhao@windriver.com" target="_blank">yi.zhao@windriver.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":16b" class="a3s" style="overflow:hidden">Sometimes the grep output is not correct if the log message contains<br>
some special characters. Use re.escape to escape all non-alphanumerics<br>
before grep<br></div></blockquote></div><br>If we're going to insist that the strings are literal then instead of telling grep to use extended regexp's and passing escaped regexs, why not just use -F which tells grep to search for fixed strings, not expressions.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>