Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: "em" - Emphasize text using regular expressions

by reisinge (Friar)
on Apr 20, 2013 at 13:29 UTC ( #1029640=note: print w/replies, xml ) Need Help??


in reply to "em" - Emphasize text using regular expressions

GNU grep used with --color option and GREP_COLORS environment variable can do something similar.

Well done is better than well said. -- Benjamin Franklin

Replies are listed 'Best First'.
Re^2: "em" - Emphasize text using regular expressions
by FloydATC (Deacon) on Apr 27, 2013 at 07:52 UTC
    With this tool you can just type
    tail -f logfile | em "interesting"

    ...instead of
    export GREP_COLOR="33;1" && tail -f logfile | grep "interesting" --colour

    And you can do more than one regex/color in the same filter.

    -- Time flies when you don't know what you're doing

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029640]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-09-22 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (259 votes). Check out past polls.

    Notices?