* Package name : lumin
Version : 1.0.0
* URL : https://github.com/johnkerl/lumin
Description : pattern match highlighter
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.
This is a new dependency of Miller 6.1.0.
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'
`----
❦ 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
❦ 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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 51:23:27 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,338 |
Posted today: | 1 |