GNU bug report logs - #28081
way to change line number separator from colon to space?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Severity: wishlist; Reported by: Marcel Partap <mpartap@HIDDEN>; dated Sun, 13 Aug 2017 18:24:02 UTC; Maintainer for grep is bug-grep@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 28081 <at> debbugs.gnu.org:


Received: (at 28081) by debbugs.gnu.org; 13 Aug 2017 19:06:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 13 15:06:01 2017
Received: from localhost ([127.0.0.1]:60587 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dgyD3-0007vf-DB
	for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 15:06:01 -0400
Received: from mail-io0-f170.google.com ([209.85.223.170]:33735)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>) id 1dgyD1-0007vX-BD
 for 28081 <at> debbugs.gnu.org; Sun, 13 Aug 2017 15:05:59 -0400
Received: by mail-io0-f170.google.com with SMTP id j32so33432416iod.0
 for <28081 <at> debbugs.gnu.org>; Sun, 13 Aug 2017 12:05:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=oJ8n5lHBssZGqtZaE7XL3fbzv1z4JWMx/wpYe7SuCh8=;
 b=rxRioVJeSIX+xkjae6D2zvljjxEziNWAOve0PX6Twm9lh+k7x4DgN0Kqa1U/Iaem/1
 brHGz+3o/E0F26xJELn3zdezEkRpuYe71TvxK4DLXSsSB1e1J5RTtVbG9PC5SMxlsGxz
 BYTyVrvev16141+wN+gQsLSRx0ygXrMvG7vC8nKcmcXZ3lFdrmB2PqfcNm1zW19bUUN7
 Sg1057TMlNBStUywPhWRJsLVKaI8PaKonD7KKo9cXk/NCKDLd7msY89/vreMZLxBdKvN
 7a3hQXoI7mQHM2SVD3Ij1VwQM2KXA7+sT41rx+aQZjXk7Rm7uD6A+IxhrJsOf2J32VaH
 dMZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=oJ8n5lHBssZGqtZaE7XL3fbzv1z4JWMx/wpYe7SuCh8=;
 b=j6H2RfEeQCKQEFNBijbyH869+YQlUjIU3GWXjYHBTy/2/XG9eUUr+52mNwDuHY4Md5
 x1iZGm+8actggXTbNxp6a8U8rwNHhjk6vohMnbbGfJUvhFPMm1A6w9LxO4wMmlZ2JY65
 6cWKI8Nn3QrjSX+Zl59Swky9vskoa4X+pDMxXPrvu5NuGFL2EIugyblkXWYxAQ2erYaH
 NIz6TKdxZKsFTcREKdUhC7Ob0FqXiT5dg6eMfwbOXdDzDvJgzN3A1zBwTm2pCUMGTC7z
 6tjnxOZ0E1J1091N5ABmHDDLj6TurMEomrCYa6EPjqUmqSWfIsSwTiKPvrKhaHsjQ+9E
 sxvw==
X-Gm-Message-State: AHYfb5gTUwETjQUfKnXosG2wd+aEVdQwX84PpBpKCJjWgPCvfJ2gEb7G
 nX7r+y3abHogbiZHKyg=
X-Received: by 10.107.59.200 with SMTP id i191mr16663341ioa.59.1502651153475; 
 Sun, 13 Aug 2017 12:05:53 -0700 (PDT)
Received: from [192.168.88.253] (S010664777daa62d3.cg.shawcable.net.
 [70.72.44.2])
 by smtp.gmail.com with ESMTPSA id 27sm2796696ioj.61.2017.08.13.12.05.52
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 13 Aug 2017 12:05:52 -0700 (PDT)
Subject: Re: bug#28081: way to change line number separator from colon to
 space?
To: Marcel Partap <mpartap@HIDDEN>, Bruce Dubbs <bruce.dubbs@HIDDEN>,
 28081 <at> debbugs.gnu.org
References: <e57c684d-af4e-0b0b-513d-0313ed823a35@HIDDEN>
 <59909DA0.8090501@HIDDEN> <283e2116-28eb-7a6c-a442-5e13737b583e@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <b22586d6-baee-0e40-36a0-2b0587262fe0@HIDDEN>
Date: Sun, 13 Aug 2017 13:05:42 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <283e2116-28eb-7a6c-a442-5e13737b583e@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 28081
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)

Hello,

On 13/08/17 12:45 PM, Marcel Partap wrote:
>> One way:
>> grep <arguments> | sed "s/:/ /"
> Thanks, obvious approach, but loses colour 😁

Few things:

First,
you can force grep to output color with:

   grep --color=always <argument> | sed 's/:/ /'


Second,
If you grep on a shell-glob (e.g. "*.txt"),
you might want to add "-H -n" to force grep
to always output the filename and the line number.
Otherwise, if the glob matches a single file,
grep by default will not output the filename/line number -
and the 'sed' will not do what you wanted.

   grep --color=always -Hn <argument> *.txt


Third,
This assumes filenames do not contain the character ':'
(which is probably a valid assumptions most of the time, but not always).
To be more robust, you can use GNU grep's "-Z" option, which outputs
a NUL after the filename, the GNU sed to replace the NUL with something
else.
Example:

  $ grep --color=always -HZn Deb /etc/motd | sed 's/\x00/ === /'
  /etc/motd === 2:The programs included with the Debian GNU/Linux
  /etc/motd === 6:Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY



Fourth,
To easily automate all of that, you can create
a tiny shell function (put it in ~/.bashrc or ~/.bash_aliases, etc):

  nicegrep() { grep --color=always -HZn "$@" | sed 's/\x00/ === /' ; }

Then run:

  nicegrep Deb /etc/motd




regards,
 - assaf





Information forwarded to bug-grep@HIDDEN:
bug#28081; Package grep. Full text available.

Message received at 28081 <at> debbugs.gnu.org:


Received: (at 28081) by debbugs.gnu.org; 13 Aug 2017 18:46:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 13 14:46:08 2017
Received: from localhost ([127.0.0.1]:60511 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dgxto-0007kS-Mi
	for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:46:08 -0400
Received: from mout.gmx.net ([212.227.15.19]:58393)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mpartap@HIDDEN>) id 1dgxtm-0007jw-Py
 for 28081 <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:46:07 -0400
Received: from [192.168.0.2] ([86.56.86.149]) by mail.gmx.com (mrgmx001
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MfF6I-1dwxFl3Yew-00OsTC; Sun, 13
 Aug 2017 20:45:59 +0200
Subject: Re: bug#28081: way to change line number separator from colon to
 space?
To: Bruce Dubbs <bruce.dubbs@HIDDEN>, 28081 <at> debbugs.gnu.org
References: <e57c684d-af4e-0b0b-513d-0313ed823a35@HIDDEN>
 <59909DA0.8090501@HIDDEN>
From: Marcel Partap <mpartap@HIDDEN>
Openpgp: id=C4C0E1612096D4093A38ED040F964C6DA90A4BE3;
 url=http://pgp.mit.edu/pks/lookup?op=get&search=mpartap@HIDDEN
Message-ID: <283e2116-28eb-7a6c-a442-5e13737b583e@HIDDEN>
Date: Sun, 13 Aug 2017 20:45:58 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:45.0) Gecko/20100101
 Icedove/45.6.0
MIME-Version: 1.0
In-Reply-To: <59909DA0.8090501@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:/x0pI51TPvJ0J6YEQjSTidbCEhqddGLj2etzw9ZNlvdvVll13j+
 WA9iyUM5O++pn5H/tToJ3qzY/rbPaYcmiN775njB7dIgr4CZgcdLqa6mk1zlYHkML9wVXRS
 uWwugH1EawtMzU7Q7nP98vE8DALbsw+vgOYjLdkKCVYAbVVClMYdr87c99waeSkS796Erq3
 cM7NLv5wrKHLOHlTokr1g==
X-UI-Out-Filterresults: notjunk:1;V01:K0:WkRO46nmSQI=:wbbCTCAvWQaroz/t6w9NoP
 Zh56Uvwg78rtHjZI3m8a+BklImd6TdUO+DPoMFinKbNdCgIPgDOeMP/io8FqA5v4tHrdECtz8
 8o7zzbpooBWoGXzOO5olO2Fi6iwVddp3tFZWiVTL5sJN9j4KVSyIIMBAipqFFRat0zz4ttIe1
 1lN2p0Jhd7cJa/J+8mRZ4t7ZzyAvsESOXfhNqP8yGsRE/wER1Jub3DETx3vdebQPY6CDo8L9W
 4F+oiij4fNOqk0TBMsS4QmSPiWK96VlKmLXtMw7EoGjUTO+lkcTV0xGt7HwKu0p+nOwc95W05
 gjyfBNxoU85ndO8RjWUFAJ197Rh2jPFK5HCrybp3CTR0RNkuSbMyK3joKzJJBiqIzUPeKTg/q
 RfACV4XRkfAOBGbsAfBlBwyhfxmgbhPQBuFGQIpqUxF7VcILRuamsp5pGQnsAo4U+YS70g6zc
 vazfWskGyXk2dcBtUOzsg/EIFLVYFhf5L7Mvup61z4tcoGJ1GkELYE2Wslqus+YNp7MtYyav7
 D5+GNS+tEz8BdCehOE+QYlv9JkpN+0i+Zdj9bXlNeOM7e2R4kVAJFNfrmzNPU43NbbepySmwf
 EBVzjsyYKgMp6/MJg8TJTBpBTL8c6wzp5yZwavsjfgWY1CkqdbJWFVqnpCNlSno8YloCorzwv
 fWUhGSbezsV34RiCYAA8p2BNN9PtDu9A5J7HyRCko2h8YAEbHUu4JON5PTP82os5LFAY+GyV4
 DH1VeufML6TfyB4+WUDx8GFYHM5XY4Y20GXQ0Msd4coMgEIhEG8beizTjVgVSxhczOMf+MiRl
 0xh+YiGilvqyNn8oImql7KAN05lKDf0DK/AOXASgK1QyoNWzwI=
X-Spam-Score: -3.0 (---)
X-Debbugs-Envelope-To: 28081
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.0 (---)

> One way:
> grep <arguments> | sed "s/:/ /"
Thanks, obvious approach, but loses colour 😁





Information forwarded to bug-grep@HIDDEN:
bug#28081; Package grep. Full text available.

Message received at 28081 <at> debbugs.gnu.org:


Received: (at 28081) by debbugs.gnu.org; 13 Aug 2017 18:42:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 13 14:42:49 2017
Received: from localhost ([127.0.0.1]:60495 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dgxqb-0007i8-7M
	for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:42:49 -0400
Received: from mail-oi0-f51.google.com ([209.85.218.51]:32798)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bruce.dubbs@HIDDEN>) id 1dgxqZ-0007i2-Gj
 for 28081 <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:42:47 -0400
Received: by mail-oi0-f51.google.com with SMTP id f11so68631261oic.0
 for <28081 <at> debbugs.gnu.org>; Sun, 13 Aug 2017 11:42:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-transfer-encoding;
 bh=NiX5H/Cs5hmPHWRsQn0Vd1M0R5Bsm36I8410o2mRReQ=;
 b=dOQJw9Q1uOzUAHVR8+EBdKEq8ncYDknH3mB4f7jdD24i8zFjQ/k8knRZtBU1sL52Ws
 RK6bwFR9UIXcQsU4mwitj2ZMTS6KLmdYWK4CB6+aRHH++SUDN4bqUYORGoKoQDX69DCg
 JimPI1zox6i+iua9xmwSB3Vbe3kgNqTfmwWNXvcx/1WttsOuP+cbyKYx3JFckYFzw0M4
 98YT/e971ovhDyy+IwQ9KfmiZUYB5redjY5HdvKyIdQLPflcFtcDoSjeuVXsOQPh9bco
 tlzQWbL/sHjuq/YgAA7zb9VEtdfZVdopFkosCySlqSXcZqyw/eRFGFmYUGcqSJlxo3g7
 c5NA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-transfer-encoding;
 bh=NiX5H/Cs5hmPHWRsQn0Vd1M0R5Bsm36I8410o2mRReQ=;
 b=Ct+kuo7i+SQ6Y3dna/qQJaF9jSN5xutGE8GwvxHnIJQv7zp3KSWAYbQnLTOeMjFskJ
 z5NGXifHxcjPm7Oa+dHJg6cK5RCou6x2D6KEb7R3QEvun46hCy9517VnBF8TwR2Cm8Jf
 FsXPFbkAIUaxeiDzgN781qLkv0rwFakdIbMvXjCbDXhe8fGVDarQsgNmku08T0jQ0EwC
 0FfZ1CN/bzcPMfa+TO6BOMjqtFDVpBVGF5z2L1dnnJV93vLg34CXp5W8lQiBPe+PJNIt
 dtL1Jis0fc0/+9PZY36gYOSulViJPyhL+o7pDROnhVlhVJ9Y68jDvHadn5zjfFq5FCEa
 DcQg==
X-Gm-Message-State: AHYfb5hSs2h3WAsfLJVTjKRe/AE04Nfy6Ow/7J2VNq/R4rRGbBv0QX9P
 Ht0BRzD5rRf5yVOp
X-Received: by 10.202.215.66 with SMTP id o63mr26089654oig.176.1502649761620; 
 Sun, 13 Aug 2017 11:42:41 -0700 (PDT)
Received: from [192.168.0.76] (cpe-70-123-251-100.satx.res.rr.com.
 [70.123.251.100])
 by smtp.gmail.com with ESMTPSA id w134sm7287510oif.32.2017.08.13.11.42.40
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 13 Aug 2017 11:42:41 -0700 (PDT)
Subject: Re: bug#28081: way to change line number separator from colon to
 space?
To: Marcel Partap <mpartap@HIDDEN>, 28081 <at> debbugs.gnu.org
References: <e57c684d-af4e-0b0b-513d-0313ed823a35@HIDDEN>
From: Bruce Dubbs <bruce.dubbs@HIDDEN>
Message-ID: <59909DA0.8090501@HIDDEN>
Date: Sun, 13 Aug 2017 13:42:40 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101
 Firefox/42.0 SeaMonkey/2.39
MIME-Version: 1.0
In-Reply-To: <e57c684d-af4e-0b0b-513d-0313ed823a35@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 28081
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.5 (/)

Marcel Partap wrote:
> Hi,
> is there any way to make grep place a space before and after the line number instead of a colon?
>> *./src/ui_download_manager.cc:36:namespace cwidget
> With many terminals not including the : as a word separator SHIFT+double click on the filename selects
>> filename:line:
> so one has to manually select the filename. So much unneccessary work 😁

One way:

grep <arguments> | sed "s/:/ /"

You could easily create a script to automatically do that. It wouldn't 
handle the case where a colon is a part of the file name, but that's 
pretty rare.

   -- Bruce






Information forwarded to bug-grep@HIDDEN:
bug#28081; Package grep. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Aug 2017 18:23:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 13 14:23:05 2017
Received: from localhost ([127.0.0.1]:60412 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dgxXV-0007Za-67
	for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:23:05 -0400
Received: from eggs.gnu.org ([208.118.235.92]:40038)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mpartap@HIDDEN>) id 1dgxXU-0007Yk-45
 for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:23:04 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mpartap@HIDDEN>) id 1dgxXO-0006O1-Al
 for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:22:59 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: **
X-Spam-Status: No, score=2.1 required=5.0 tests=BAYES_20,DATE_IN_PAST_03_06,
 FREEMAIL_FROM,RCVD_IN_SORBS_SPAM autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:33124)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <mpartap@HIDDEN>) id 1dgxXO-0006Nv-7F
 for submit <at> debbugs.gnu.org; Sun, 13 Aug 2017 14:22:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:59236)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <mpartap@HIDDEN>) id 1dgxXN-0000XS-8y
 for bug-grep@HIDDEN; Sun, 13 Aug 2017 14:22:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <mpartap@HIDDEN>) id 1dgxXK-0006N3-5Z
 for bug-grep@HIDDEN; Sun, 13 Aug 2017 14:22:57 -0400
Received: from mout.gmx.net ([212.227.15.19]:59024)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <mpartap@HIDDEN>) id 1dgxXJ-0006MG-RV
 for bug-grep@HIDDEN; Sun, 13 Aug 2017 14:22:54 -0400
Received: from [192.168.0.2] ([86.56.86.149]) by mail.gmx.com (mrgmx002
 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Lvl0u-1dX0FW3C3g-017TIS for
 <bug-grep@HIDDEN>; Sun, 13 Aug 2017 20:22:50 +0200
To: bug-grep@HIDDEN
From: Marcel Partap <mpartap@HIDDEN>
Subject: way to change line number separator from colon to space?
Openpgp: id=C4C0E1612096D4093A38ED040F964C6DA90A4BE3;
 url=http://pgp.mit.edu/pks/lookup?op=get&search=mpartap@HIDDEN
Message-ID: <e57c684d-af4e-0b0b-513d-0313ed823a35@HIDDEN>
Date: Sun, 13 Aug 2017 15:41:19 +0200
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:45.0) Gecko/20100101
 Icedove/45.6.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Provags-ID: V03:K0:YCLwq5V2Mc6cROabBiNNBMGnUlv4kVGS+J+ZYexcbiAMTgOenjM
 yTOvc9XLswyvRFQSPZAM/catwqaNXaFFu5z7U+92mKnpc+9jlv7PNx+I53eyEOyQfoCelL9
 v6totUnMlBA7btKtTms9MRirQtpIfyTSsF1xpo5EZKApk2yHnIs0BAsVDJXoPQgoBspYFMn
 a6IKK2q32xlQbxjyRmUaQ==
X-UI-Out-Filterresults: notjunk:1;V01:K0:2fPxvVrV71E=:XKpg8ZJ80ADsGj755j9/GS
 JEMwslf50oYEO+zdOMmmgsmE29rexH6hWjvjSiVNadYo/PFR/w5cTtcJC/M6gUiLT/LriyMtf
 RiYD9Trao6Mgfc/fRa7uspGj1/wC8P7J3Ai13NTmf4J3hMJ3alhgDaqMU4QyzOp8ZZVFKc+rj
 pbFtb66jMuU95NBpUKcECsUZAh2vLBo0mqD7d/SWlZBmkNzQktrY6a3IfpRT9Ks/8KJhfXNMN
 z3NY1SrzU7rvLnTIB0SXHUC63+LBjqmP9J01rDFG2lr26jsrQs6NkdmocAn8R45CUlurVaWeQ
 qKdCIEeAjXR0BubBHCu9Z8TDTQqWdl8Cv3G2t0tVUuCIDqQ3KEk7W0CvI7ucQHsHi76wOhnLk
 R5vI3+jtXdy39U8QqeFqtVmbpdfGHIJihz4CwlcScLkYFGuOrRDJRs/wNgTUS8H3X2/n4e6L9
 KH1MXZIHNWlbCi3/Sw7cPQvq1r1+p6Oe0kwweG3qrMQvUn3OXslZsYpuX7L7/KbZLxRw8NXX6
 abDUjrVNHZXp8aca07UPYCRlr7+ifVEl+nGrgBmgS4Jp7wcAqOX75qs6N15H5lte4Z0tuUdtK
 Wg4KKT1eS2ymAGme6SMkN0G7+h4KYifw7zNfueFN9iimfmRUGdf8bYr2td5v/w+08iMFcz93p
 26VvRYrbNHrxZzEYNTw0zO7VCj240KetS9HNyBM1yoRglI08V954UrIlsAoYEaD4xR2pFYz46
 DGI9xMzP2DRc651V6nenWW+Ba78p0MwZ+g7xXb2NlD+jAuQvy8QWTOWW7x2aF5HhEiLdLWgeo
 D+bdB2Ll/K8K4O9PAargiFYcasNFu/wN1xNpRrur1XfPGhfPqw=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -2.5 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.5 (--)

Hi,
is there any way to make grep place a space before and after the line number instead of a colon?
> *./src/ui_download_manager.cc:36:namespace cwidget
With many terminals not including the : as a word separator SHIFT+double click on the filename selects
> filename:line:
so one has to manually select the filename. So much unneccessary work 😁

#Best Regards/MPartap




Acknowledgement sent to Marcel Partap <mpartap@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#28081; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 31 Dec 2019 19:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.