On Fri, Oct 6, 2017, 9:49 AM Garrett Chan <[email protected]> wrote:

> Hi,
>
> Is there a way to highlight a certain string as it appears on the
> terminal/shell? As I'm running my script I would like it to highlight a
> string like "PASS" or "FAIL", instead of parsing through the log file.
>

I just use ack --passthru for that. That is one feature, I believe, ag (the
silver searcher) or rg (ripgrep) don't have.

Just pipe your command output to ack. Here's a search result:
http://powdahound.com/2009/10/colorize-log-output-with-ack/

> --

Kaushal Modi

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to