From: Dick Streefland <dick@streefland.net>
To: Amerigo Wang <xiyou.wangcong@gmail.com>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] kconfig: simplification of scripts/extract-ikconfig
Date: Mon, 29 Jun 2009 13:36:13 +0200 [thread overview]
Message-ID: <20090629113613.GA6853@streefland.net> (raw)
In-Reply-To: <20090629025146.GA5998@cr0.nay.redhat.com>
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.
--
Dick
next prev parent reply other threads:[~2009-06-29 11:36 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 22:52 Dick Streefland
2009-06-24 2:15 ` Amerigo Wang
2009-06-24 11:46 ` Dick Streefland
2009-06-24 13:31 ` Dick Streefland
2009-06-29 2:51 ` Amerigo Wang
2009-06-29 11:36 ` Dick Streefland [this message]
2009-07-09 2:38 ` Amerigo Wang
2009-07-09 8:26 ` 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=20090629113613.GA6853@streefland.net \
--to=dick@streefland.net \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=xiyou.wangcong@gmail.com \
/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
all inboxes | Powered by JetHome®