Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Stupid console tricks (or color highlighted tail)

by tstock (Curate)
on Dec 20, 2002 at 23:42 UTC ( #221538=note: print w/replies, xml ) Need Help??


in reply to Stupid console tricks (or color highlighted tail)

asking for console tips on windows XP... that's funny :)

To cat a log file and see error lines in red over black, I would could use this on my machine (linux):
perl -ne 'print /ERROR/ ? "\033[1;31m\033[40m$_\033[0m" : $_ ' my.log
A cool trick I use to follow a log file is use 'less my.log', /searchstring, SHIFT+f

now not only can I jump between a less and a tail -f, but also the searchstring is highlighted everytime it shows up.

tstock

update:
silly rotating star:
perl -e 'print "\b" . substr("|/-\\", time % 4, 1 ) while 1'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://221538]
help
Chatterbox?
[Eily]: French sneeze "Atchoum", because we close our mouth when we're done :P
[erix]: Hatshepsut (no sneezing audio there)
choroba wipes the saliva from the cookies
[LanX]: scary Le Pen + Melonchon had over 40% ...
[vrk]: One good word for it in Finnish is pärskäys. A very wet connotation.
[Eily]: somehow when googling pärskäys I got a pageful of Finnish :P
[robby_dobby]: Can I go participate in an YAPC?
[Eily]: (I was trying to find a translation but google translate didn't help)
robby_dobby is not entirely serious
[LanX]: ... thank God France doesn't have an electoral college...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-04-24 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (442 votes). Check out past polls.