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

Re: Bug#1006885: ITP: lumin -- pattern match highlighter



Meh... an interesting package name.

On Mon, 2022-03-07 at 20:29 +0100, Vincent Bernat wrote:
>  ❦  7 March 2022 18:33 +01, Adam Borowski:
> 
> > > lumin highlights matches to a specified pattern (string or
> > > regular
> > > expression) in files, using color. This is similar to grep with
> > > colorized output, but it outputs all lines in the given files,
> > > not
> > > only matching lines.
> > 
> > .--====[ ~/bin/hl ]
> > #!/bin/sh
> > sed 's/'"$*"'/\c[[1;33m&\c[[0m/g'
> > `----
> 
> grep --color -C400000000000 pattern
> 
> There are other suggestions here:
> https://stackoverflow.com/questions/981601/colorized-grep-viewing-the-entire-file-with-highlighted-matches



Reply to: