* 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: | 339 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:06:29 |
Calls: | 7,466 |
Calls today: | 2 |
Files: | 12,691 |
Messages: | 5,627,862 |