bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-grep] Re: grep feature request: show column numbers


From: Stepan Kasal
Subject: [bug-grep] Re: grep feature request: show column numbers
Date: Tue, 14 Dec 2004 08:20:40 +0100
User-agent: Mutt/1.4.1i

Hi,

[moved the discussion to bug-grep]

On Mon, Dec 13, 2004 at 01:21:59PM +0000, Stephane Chazelas wrote:
> On Mon, Dec 13, 2004 at 12:52:27PM +1100, Martin Pool wrote:
> > It would be nice if GNU grep had an option to show the column number
[...]
> > % grep -nH --column GNU /etc/issue
> > /etc/issue:1:8:Debian GNU/Linux 3.1 \n \l
> [...]
> That's a job for awk:

well, that brings the problem that awk regexps differ from all the types
supported by grep.  It depends, whether the application can take this.

But we both agree that the solution can be programmed easily outside
the grep proper.

Regards,
        Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]