Re: [PATCH/RFC 0/4] grep: support to match by line number
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 2, 2011, 16:38 UTC
- Message-ID
- <7vfwoxoy5c.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <cover.1304318972.git.bert.wesarg@googlemail.com>
I am personally not thrilled by what this series attempts to do, but first a few questions:
- Are there existing non-git "grep" implementations that do this?
- If yes: - what command option letter do they use to specify line number? - do they not support a range notation (e.g. -@ 25-30,32-40)? - what do they do when given more than one file?
- If no:
- why not? Is it a sign that this is ill-thought out misfeature?
- perhaps people use something like "sed -n -e 25,30p file" and be
happy?