On Mon, 07 Mar 2022 20:29:12 +0100, Vincent Bernat <ber...@debian.org> 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
Thanks, I’m aware that the program itself isn’t all that useful (or at least, can be replaced by trivial scripts); it’s been added as a dependency of Miller, which is very useful. I’m planning on suggesting alternatives for Miller itself, but I would like to get the new version of Miller in the archive in the meantime! Regards, Stephen
pgpP5BrSfhlzv.pgp
Description: OpenPGP digital signature