bug-gnu-utils
[Top][All Lists]
Advanced

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

grep feature request: print all lines


From: Egmont Koblinger
Subject: grep feature request: print all lines
Date: Fri, 22 Oct 2004 16:21:06 +0200
User-agent: Mutt/1.5.6+20040722i

Hi,

Grep is able to either print all matching lines (default), or all
non-matching ones (-v). However, I really miss one feature: to print all the
lines.

For the first sight it may make no sense at all (cat can do it also),
however, it does:

- Coloring could still be performed for matches, e.g.
    grep --print-all-lines --color=auto pattern file
  would print the whole file to my terminal with highlighting strings that
  match the given pattern.

- The return value could reflect whether a match was found.

- Line numbering, file name prefixing for lines etc. still could be
  performed.


thx,

Egmont




reply via email to

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