Skip to main content
5 events
when toggle format what by license comment
Nov 8, 2022 at 18:26 comment added payne Would you mind editing the answer to provide a function for this? I'd love to have hl ("highlight") declared in my .zshrc. Something like cat foo.txt | hl bar. But it should also work when provided a file (hl "bar" foo.txt).
Dec 25, 2013 at 6:29 vote accept Meysam
Dec 25, 2013 at 6:24 comment added Chris Down @Meysam You can do so using the GREP_COLOR(S) environment variable. gnu.org/software/grep/manual/html_node/…
Dec 25, 2013 at 6:20 comment added Meysam Thank you. The highlighted word is currently red on my computer. Is it possible to customize the color as well?
Dec 25, 2013 at 6:13 history answered Chris Down CC BY-SA 3.0