[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-grep] Re: grep patch proposal (-p, --position new option)
From: |
Martin Pool |
Subject: |
[bug-grep] Re: grep patch proposal (-p, --position new option) |
Date: |
Tue, 14 Dec 2004 16:54:04 +1100 |
User-agent: |
Mutt/1.5.6+20040907i |
On 14 Dec 2004, Claudio Fontana <address@hidden> wrote:
> My proposal is to add a "-p, --position" option with
> the following description:
>
> "Prefix each line of output with the position (line
> and column) within its input file of the first match
> in the line."
>
> A simple context patch is attached, apply with
> patch -p1 < grep_position.patch
Thanks for writing a patch.
Perhaps (only perhaps) it should be orthogonal to the line-number
option, so that you would need -np to get both. I don't know if that
is really worthwhile.
--
Martin
signature.asc
Description: Digital signature