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: Fri, 10 Jul 2009 15:55:30 +0800 [thread overview]
Message-ID: <20090710075530.GB6263@cr0.nay.redhat.com> (raw)
In-Reply-To: <20090709082651.GA6165@streefland.net>
On Thu, Jul 09, 2009 at 10:26:51AM +0200, Dick Streefland wrote:
>On Thursday 2009-07-09 10:38, Amerigo Wang wrote:
>| 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>
>
>Great, thanks.
>
>| 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??
>
>The output with grep-2.5.3 is 3:4, which means that the string "4" was
>found at offset 3 (0-based). With grep-2.5.1, you get 0:4, which means
>that the line containing the string "4" has offset 0. The "tr" commands
>in the script ensure that the patterns we are looking for are always at
>the start of a line, so that it doesn't matter which version of grep is
>installed.
Hmm, I see, it is really a _big_ change. :)
Have you checked other version of grep? I mean lower version, of course,
does your script work with them too?
Thank you!
next prev parent reply other threads:[~2009-07-10 7:53 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 ` [PATCH] kconfig: simplification of scripts/extract-ikconfig Amerigo Wang
2009-07-09 8:26 ` Dick Streefland
2009-07-10 7:55 ` Amerigo Wang [this message]
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=20090710075530.GB6263@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