[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to print both matched and non matched lines?
From: |
db |
Subject: |
Re: How to print both matched and non matched lines? |
Date: |
Tue, 6 Dec 2011 11:32:05 +0100 |
User-agent: |
|
On Mon, 21 Nov 2011 23:47:42 -0600, Peng Yu <address@hidden> wrote:
> Hi,
>
> I use --color=auto, so that I can distinguish nonmatched lines from
> matched lines by looking at the colored text if the non matched lines
> is shown. But I don't see an option to allow me show all lines. Would
> you please let me know if there is such an option if I miss anything
> in the man page?
What about the obvious
grep -e 'pattern' -e '^'
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: How to print both matched and non matched lines?,
db <=