public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Amerigo Wang <xiyou.wangcong@gmail.com>
To: Dick Streefland <dick@streefland.net>
Cc: Amerigo Wang <xiyou.wangcong@gmail.com>,
	linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kconfig: simplification of scripts/extract-ikconfig
Date: Thu, 9 Jul 2009 10:38:55 +0800	[thread overview]
Message-ID: <20090709023855.GA5648@cr0.nay.redhat.com> (raw)
In-Reply-To: <20090629113613.GA6853@streefland.net>

On Mon, Jun 29, 2009 at 01:36:13PM +0200, Dick Streefland wrote:
>On Monday 2009-06-29 10:51, Amerigo Wang wrote:
>| Does this work?
>| My quick test shows no...
>| 
>| I still can't get the right offset number with this trick.
>| 
>| P.S. My grep is 2.5.1.
>
>I've tested the script with grep 2.5.1, and it works for me. Can you be
>more specific about what you think is wrong with the offsets? You need
>to be aware of the fact that because "tr" replaces the first character
>of the pattern by a newline, an offset will be 1 higher than the start
>of the original pattern. The resulting offsets are therefore 1-based
>instead of 0-based, which is exactly what "tail" expects for the "-c"
>option.

Hi,

I appologize for my delay, I totally missed this thread, sorry.

I just tested it, it works! So,

Tested-by: WANG Cong <xiyou.wangcong@gmail.com>


But, I still don't understand the behavior of 'grep -abo',
please try the following commands:

echo -e '\x01\x02\x03\x04' > test.bin
od -x test.bin
tr $'\x01\x02\x03\x04' '1234' < test.bin | grep -abo '4'


Am I missing something here??

Thanks.

       reply	other threads:[~2009-07-09  2:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090623225245.GA10443@streefland.net>
     [not found] ` <20090624021506.GA5871@cr0.nay.redhat.com>
     [not found]   ` <20090624114607.GA10817@streefland.net>
     [not found]     ` <20090624133148.GA12878@streefland.net>
     [not found]       ` <20090629025146.GA5998@cr0.nay.redhat.com>
     [not found]         ` <20090629113613.GA6853@streefland.net>
2009-07-09  2:38           ` Amerigo Wang [this message]
2009-07-09  8:26             ` [PATCH] kconfig: simplification of scripts/extract-ikconfig Dick Streefland
2009-07-10  7:55               ` Amerigo Wang
2009-07-10  9:54                 ` Dick Streefland
2009-07-17 21:17                   ` Sam Ravnborg
2009-07-17 23:08                     ` Dick Streefland
2009-07-18  7:06                       ` Sam Ravnborg
2009-10-06 20:35 Dick Streefland
2009-10-07  2:11 ` Steven Rostedt
2009-10-07  8:41   ` Dick Streefland
2009-10-07 13:20     ` Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090709023855.GA5648@cr0.nay.redhat.com \
    --to=xiyou.wangcong@gmail.com \
    --cc=dick@streefland.net \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox