From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D849C433E1 for ; Mon, 15 Jun 2020 09:19:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 65CB920738 for ; Mon, 15 Jun 2020 09:19:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729158AbgFOJTL (ORCPT ); Mon, 15 Jun 2020 05:19:11 -0400 Received: from mx2.suse.de ([195.135.220.15]:41904 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbgFOJTK (ORCPT ); Mon, 15 Jun 2020 05:19:10 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 07743AECE; Mon, 15 Jun 2020 09:19:12 +0000 (UTC) Date: Mon, 15 Jun 2020 11:19:08 +0200 From: Petr Mladek To: Miroslav Benes Cc: Joe Lawrence , Kamalesh Babulal , live-patching@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 3/3] selftests/livepatch: filter 'taints' from dmesg comparison Message-ID: <20200615091908.GD31238@alley> References: <20200610172101.21910-1-joe.lawrence@redhat.com> <20200610172101.21910-4-joe.lawrence@redhat.com> <047eba61-b0b9-4e91-395f-13bafbf43af6@redhat.com> <20200612114706.GH4311@linux-b0ei> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On Mon 2020-06-15 09:55:27, Miroslav Benes wrote: > > From > > https://www.gnu.org/software/grep/manual/grep.html#The-Backslash-Character-and-Special-Expressions > > : > > > > The ‘\’ character, when followed by certain ordinary characters, takes a > > special meaning: > > > > ... > > > > ‘\<’ > > > > Match the empty string at the beginning of word. > > ‘\>’ > > > > Match the empty string at the end of word. The description is a bit confusing. I wonder how it handles dot, comma, or colon. They are neither empty or word characters. > > > > I'd be happy to use any other (more readable!) whole-word matching grep trick, > > this \ just happens to be committed to my cmdline muscle memory. > > There is 'grep -w' which I use for this. 'grep -w' looks good promissing. Best Regards, Petr