Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: "em" - Emphasize text using regular expressions

by j0se (Pilgrim)
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

Comment on Re: "em" - Emphasize text using regular expressions
Select or Download Code
Replies are listed 'Best First'.
Re^2: "em" - Emphasize text using regular expressions
by FloydATC (Chaplain) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029640]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (10)
As of 2015-08-03 06:03 GMT
Find Nodes?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...

    Results (25 votes), past polls