GNU bug report logs - #35043
Is there a way to show file name once just before all the matches in the file?

Previous Next

Package: grep;

Reported by: Peng Yu <pengyu.ut <at> gmail.com>

Date: Fri, 29 Mar 2019 20:48:02 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peng Yu <pengyu.ut <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: Is there a way to show file name once just before all the matches in
 the file?
Date: Fri, 29 Mar 2019 15:47:41 -0500
Hi,

By default, filenames are shown at the same lines of the matches (when
there are multiple files). But I'd like a filename only shown once
before all the matches in the given file. Is there an option to do so
with grep? Thanks.

-- 
Regards,
Peng




This bug report was last modified 5 years and 166 days ago.

Previous Next


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